Skip to content

Commit

Permalink
ci(jenkins): replace cp with install
Browse files Browse the repository at this point in the history
circumvents the permission error (writing on file with 400)  when env.env already exists
  • Loading branch information
Mytlogos committed Nov 2, 2020
1 parent 4c923f6 commit b6a4b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b6a4b35

Please sign in to comment.