From ecbc41b622d9a4eb6aabc4843d5737060669558a Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Mon, 18 Feb 2019 21:14:26 +1000 Subject: [PATCH] Arm64 build process doesn't run as root --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index be237f9e..2e4f1e69 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -157,7 +157,7 @@ pipeline { // Codebase sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE:arm64 yarn install' sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE:arm64 npm run-script build' - sh 'rm -rf node_modules' + sh 'sudo rm -rf node_modules' sh 'docker run --rm -v $(pwd):/app -w /app $BASE_IMAGE:arm64 yarn install --prod' // Docker Build