From 353eeaa0aeff2ffb2837d745a3e6618a9e4e14f8 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Mon, 30 Jul 2018 12:06:23 +1000 Subject: [PATCH] Fix CI --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f51ad6..6ca6cf0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,7 +60,6 @@ pipeline { sh 'docker pull jc21/$IMAGE_NAME-base:armhf' sh 'docker run --rm -v $(pwd)/manager:/srv/manager -w /srv/manager jc21/$IMAGE_NAME-base:armhf yarn --registry=$NPM_REGISTRY install' sh 'docker run --rm -v $(pwd)/manager:/srv/manager -w /srv/manager jc21/$IMAGE_NAME-base:armhf gulp build' - sh 'docker run --rm -v $(pwd)/manager:/srv/manager -w /srv/manager jc21/$IMAGE_NAME-base:armhf rm -rf node_modules' sh 'docker run --rm -v $(pwd)/manager:/srv/manager -w /srv/manager jc21/$IMAGE_NAME-base:armhf yarn --registry=$NPM_REGISTRY install --prod' sh 'docker run --rm -v $(pwd)/manager:/data $DOCKER_CI_TOOLS:latest-armhf node-prune' @@ -84,6 +83,9 @@ pipeline { } sh 'docker rmi $TEMP_IMAGE_NAME_ARM' + + // Fix perms for the next build + sh 'sudo chown -R jenkins:jenkins * .git' } } }