diff --git a/Jenkinsfile b/Jenkinsfile index ce7f9e7..23bebfd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,8 +18,13 @@ node { } } dir('target/front'){ + stage("Frontend: Build") { docker.image('circleci/node:10').inside{ - stage("Frontend: Build") { sh 'npm install && npm run build' } + withEnv([ + 'npm_config_cache=npm-cache', + 'HOME=.', + ]) { sh 'npm install && npm run build' } + } } } }