Skip to content
Permalink
Browse files
Merge pull request #51 from apache/revert-50-fix/brooklyn-client-build
Revert "Fix brooklyn-client build issue"
  • Loading branch information
iuliana committed May 13, 2021
2 parents bf7cc33 + 5f307a4 commit 793cefff8902dad7f2460049c4d2eefbfa5848f7
Showing 2 changed files with 3 additions and 3 deletions.
@@ -54,15 +54,15 @@ node(label: 'ubuntu') {

stage('Run tests') {
environmentDockerImage.inside('-i --name brooklyn-${DOCKER_TAG} -v ${WORKSPACE}/.m2:/var/maven/.m2 --mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly -v ${WORKSPACE}:/usr/build -w /usr/build') {
sh 'MAVEN_OPTS="-Xmx8g" ; mvn clean install -Prpm -Pdeb -Pclient -Duser.home=/var/maven -Duser.name=jenkins'
sh 'mvn clean install -Prpm -Pdeb -Duser.home=/var/maven -Duser.name=jenkins'
}
}

// Conditional stage to deploy artifacts, when not building a PR
if (env.CHANGE_ID == null) {
stage('Deploy artifacts') {
environmentDockerImage.inside('-i --name brooklyn-${DOCKER_TAG} -v ${WORKSPACE}/.m2:/var/maven/.m2 --mount type=bind,source="${HOME}/.m2/settings.xml",target=/var/maven/.m2/settings.xml,readonly -v ${WORKSPACE}:/usr/build -w /usr/build') {
sh 'MAVEN_OPTS="-Xmx8g" mvn deploy -Prpm -Pdeb -Pclient -DskipTests -Duser.home=/var/maven -Duser.name=jenkins'
sh 'mvn deploy -Prpm -Pdeb -DskipTests -Duser.home=/var/maven -Duser.name=jenkins'
}
}
}

0 comments on commit 793ceff

Please sign in to comment.