From fe9b8145387611b2ed07837fc426a244e732b508 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 +++++++++++++- pom.xml | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c1fc6562691..fbb4e1387b2 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" + //} + // return "verify" +} diff --git a/pom.xml b/pom.xml index 5c807f4ff4b..f4aeede9c93 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,19 @@ features org.eclipse.pde.doc.user + + + + repo.eclipse.org + PDE - Releases + https://repo.eclipse.org/content/repositories/pde/ + + + repo.eclipse.org + PDE - Snapshots + https://repo.eclipse.org/content/repositories/pde-snapshots/ + +