Skip to content
Permalink
Browse files
Merge pull request #53 from apache/revert-52-fix/brooklyn-client-memory
Revert "Fix brooklyn-client build issue"
  • Loading branch information
grkvlt committed May 17, 2021
2 parents 69fc1f7 + 37ffd62 commit f96aef5b1f11783d8e9a77d5bb0d75a71b37c428
Showing 1 changed file with 2 additions and 2 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="-Xmx12g" ; 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="-Xmx12g" 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 f96aef5

Please sign in to comment.