Skip to content

Commit

Permalink
Deploy PDE artifacts to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Nov 27, 2023
1 parent e503d97 commit 0f5bcf2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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 \
Expand Down

0 comments on commit 0f5bcf2

Please sign in to comment.