This is an automated email from the ASF dual-hosted git repository.

olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 09a615e  Add mavenArgs parameter to pass extra Args for mvn
09a615e is described below

commit 09a615ef33e386cc33e0020dc7e7704128fa2d24
Author: Olivier Lamy <[email protected]>
AuthorDate: Tue Oct 3 04:03:16 2023 +0200

    Add mavenArgs parameter to pass extra Args for mvn
---
 vars/asfMavenTlpStdBuild.groovy | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index 5b2ec23..bf3e201 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -40,6 +40,7 @@ def call(Map params = [:]) {
     def jdks = params.containsKey('jdks') ? params.jdks : 
params.containsKey('jdk') ? params.jdk : ['8','11','17']
     def maven = params.containsKey('maven') ? params.maven : '3.8.x'
     def tmpWs = params.containsKey('tmpWs') ? params.tmpWs : false
+    def mavenArgs = params.containsKey('mavenArgs') ? params.mavenArgs : ''
     // def failFast = params.containsKey('failFast') ? params.failFast : true
     // Just temporarily
     def failFast = false;
@@ -67,6 +68,7 @@ def call(Map params = [:]) {
           cmd += '-Dfindbugs.skip=true'
         }
         cmd += 'clean'
+        cmd += mavenArgs
         if (env.BRANCH_NAME == 'master' && jdk == '17' && os == 'linux' ) {
           cmd += 'deploy'
         } else {

Reply via email to