Jenkinsfile fixes
gitea/salix/PR-8 This commit looks good
Details
gitea/salix/PR-8 This commit looks good
Details
This commit is contained in:
parent
3b0d003322
commit
f56043e786
|
@ -36,9 +36,6 @@ pipeline {
|
||||||
case 'test':
|
case 'test':
|
||||||
env.NODE_ENV = 'test'
|
env.NODE_ENV = 'test'
|
||||||
break
|
break
|
||||||
default:
|
|
||||||
env.NODE_ENV = 'development'
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "Committer: ${env.GIT_COMMITTER_EMAIL}"
|
echo "Committer: ${env.GIT_COMMITTER_EMAIL}"
|
||||||
|
@ -124,9 +121,10 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Cleanup') {
|
stage('Cleanup') {
|
||||||
when {
|
when { anyOf {
|
||||||
not { branch 'dev' }
|
branch 'test'
|
||||||
}
|
branch 'master'
|
||||||
|
}}
|
||||||
steps {
|
steps {
|
||||||
sh 'docker logout $REGISTRY'
|
sh 'docker logout $REGISTRY'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue