Skip to content

Commit

Permalink
WIP: Mirror permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouron committed Jan 10, 2020
1 parent f688e0f commit 64d7712
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ 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 /var/run/docker.sock:/var/run/docker.sock -v ${WORKSPACE}:/usr/build -w /usr/build') {
sh 'mvn clean install -Prpm -Pdeb -Pdocker -Duser.home=/var/maven -Duser.name=jenkins'
sh 'addgroup -gid 999 docker'
sh 'usermod -aG docker $(whoami)'
sh 'mvn clean install -Prpm -Pdeb -Pdocker -Duser.home=/var/maven -Duser.name=jenkins -rf :karaf-docker-image'
}
}
}
Expand Down

0 comments on commit 64d7712

Please # to comment.