diff --git a/Jenkinsfile b/Jenkinsfile index c1fc6562691..9a075c5552a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,12 @@ +def deployBranch = 'master' + +def mavenGoals +//if(env.BRANCH_NAME == deployBranch) { +// mavenGoals = "verify" +//} else { + mavenGoals = "deploy -DdeployAtEnd=true -DaltDeploymentRepository=repo.eclipse.org::https://repo.eclipse.org/content/repositories/pde-snapshots/" +//} + pipeline { options { timeout(time: 40, unit: 'MINUTES') @@ -17,7 +26,7 @@ pipeline { steps { wrap([$class: 'Xvnc', useXauthority: true]) { sh ''' - mvn clean verify --batch-mode -Dmaven.repo.local=$WORKSPACE/.m2/repository \ + mvn clean $mavenGoals --batch-mode -Dmaven.repo.local=$WORKSPACE/.m2/repository \ -Pbree-libs \ -Papi-check \ -Pjavadoc \