Jenkins optimizations

This commit is contained in:
Juan Ferrer 2019-02-12 00:22:59 +01:00
parent 13c65f1907
commit 2214d9cae3
1 changed files with 10 additions and 6 deletions

16
Jenkinsfile vendored
View File

@ -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'