From e20b1def0e9224c6c48048b97eb1016cf1f4a758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Mon, 27 Nov 2023 08:40:55 +0100 Subject: [PATCH] Deploy PDE artifacts to maven --- Jenkinsfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 \