Improved Jenkinsfile

This commit is contained in:
Artur Nowakowski 2019-11-30 22:42:20 +01:00
parent 6552b238cc
commit 33f264869d
1 changed files with 4 additions and 5 deletions

9
Jenkinsfile vendored
View File

@ -19,11 +19,10 @@ node {
} }
dir('target/front'){ dir('target/front'){
stage("Frontend: Build") { stage("Frontend: Build") {
docker.image('circleci/node:10').inside{ docker.image('circleci/node:10').inside{
withEnv([ withEnv([
'npm_config_cache=npm-cache', 'HOME=.',
'HOME=.', ]) { sh 'npm install && npm run build' }
]) { sh 'npm install && npm run build' }
} }
} }
} }