From b6a4b355bf1cf99a5e846d073af460a0147d29e9 Mon Sep 17 00:00:00 2001 From: Mytlogos Date: Mon, 2 Nov 2020 11:51:35 +0100 Subject: [PATCH] ci(jenkins): replace cp with install circumvents the permission error (writing on file with 400) when env.env already exists --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4f513371..1f495e3a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,7 +46,7 @@ pipeline { } steps { // copy env file for test - sh 'cp -u $ENV_ENV env.env' + sh 'install -m 600 $ENV_ENV env.env' sh 'npm run test' // remove env file for test sh 'rm env.env'