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 b216b17
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
def deployBranch = 'master'

pipeline {
options {
timeout(time: 40, unit: 'MINUTES')
Expand All @@ -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 \
Expand All @@ -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"
}

0 comments on commit b216b17

Please sign in to comment.