Jenkinsfile fixes
gitea/salix/PR-8 This commit looks good Details

This commit is contained in:
Juan Ferrer 2019-02-18 08:38:25 +01:00
parent 3b0d003322
commit f56043e786
1 changed files with 4 additions and 6 deletions

10
Jenkinsfile vendored
View File

@ -36,9 +36,6 @@ pipeline {
case 'test':
env.NODE_ENV = 'test'
break
default:
env.NODE_ENV = 'development'
break
}
}
echo "Committer: ${env.GIT_COMMITTER_EMAIL}"
@ -124,9 +121,10 @@ pipeline {
}
}
stage('Cleanup') {
when {
not { branch 'dev' }
}
when { anyOf {
branch 'test'
branch 'master'
}}
steps {
sh 'docker logout $REGISTRY'
}