This is an automated email from the ASF dual-hosted git repository.

tbouron pushed a commit to branch feature/docker
in repository https://gitbox.apache.org/repos/asf/brooklyn-dist.git

commit 64d771202543deb217e7d4a0321273cce10b5b1c
Author: Thomas Bouron <[email protected]>
AuthorDate: Fri Jan 10 15:35:49 2020 +0000

    WIP: Mirror permissions
---
 Jenkinsfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 70f8461..6adee3b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -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'
                 }
             }
         }

Reply via email to