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/archiva-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 8fc589f  clean everything
8fc589f is described below

commit 8fc589f9162ddc7fed7e5dc7e89fa39b3eeed671
Author: olivier lamy <[email protected]>
AuthorDate: Sun Dec 30 14:58:44 2018 +1000

    clean everything
    
    Signed-off-by: olivier lamy <[email protected]>
---
 vars/asfStandardBuild.groovy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vars/asfStandardBuild.groovy b/vars/asfStandardBuild.groovy
index 0238497..7483dcd 100644
--- a/vars/asfStandardBuild.groovy
+++ b/vars/asfStandardBuild.groovy
@@ -28,7 +28,8 @@ def call(Map params = [:]) {
 
   // now determine params
   def jdk = params.containsKey('jdk') ? params.jdk : 'JDK 1.8 (latest)'
-  def cmdline = params.containsKey('cmdline') ? params.cmdline : 'clean 
install'
+  // use the cmdLine parameter otherwise default depending on current branch
+  def cmdline = params.containsKey('cmdline') ? params.cmdline : 
(env.BRANCH_NAME == 'master'?"clean deploy":"clean install")
   def mvnName = params.containsKey('mvnName') ? params.mvnName : 'Maven 3.5.2'
 
 

Reply via email to