From b216b1711436b2e9829607bcc5b06e1f9a9aa781 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 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c1fc6562691..b67b64c040b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,5 @@ +def deployBranch = 'master' + pipeline { options { timeout(time: 40, unit: 'MINUTES') @@ -12,12 +14,15 @@ pipeline { maven 'apache-maven-latest' jdk 'temurin-jdk17-latest' } + environment { + MVN_GOALS = getMavenGoals() + } stages { stage('Build') { steps { wrap([$class: 'Xvnc', useXauthority: true]) { sh ''' - mvn clean verify --batch-mode -Dmaven.repo.local=$WORKSPACE/.m2/repository \ + mvn clean ${MVN_GOALS} --batch-mode -Dmaven.repo.local=$WORKSPACE/.m2/repository \ -Pbree-libs \ -Papi-check \ -Pjavadoc \ @@ -39,3 +44,10 @@ pipeline { } } } + +def getMavenGoals() { + //if(env.BRANCH_NAME == deployBranch) { + return "deploy -DdeployAtEnd=true -DaltDeploymentRepository=repo.eclipse.org::https://repo.eclipse.org/content/repositories/pde-snapshots/" + //} + // return "verify" +}