diff --git a/Jenkinsfile b/Jenkinsfile index 8a27d0c26..f9aa35eb7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,14 +44,14 @@ pipeline { echo "Committer: ${env.GIT_COMMITTER_EMAIL}" } } - stage('Build') { + stage('Install') { + environment { + NODE_ENV = "" + } steps { nodejs('node-lts') { - withEnv(['NODE_ENV=']) { - sh 'npm install --no-audit' - sh 'gulp install' - } - sh 'gulp build' + sh 'npm install --no-audit' + sh 'gulp install' } } } @@ -79,6 +79,10 @@ pipeline { CREDS = credentials('docker-registry') } steps { + nodejs('node-lts') { + sh 'gulp build' + } + sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY' sh 'docker-compose build --parallel' sh 'docker-compose push'