Skip to content
Snippets Groups Projects

Fix docker build running in main branch CI when not needed

Merged Martin Lowe requested to merge malowe/main/fix-jenkins into main
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -160,6 +160,12 @@ pipeline {
@@ -160,6 +160,12 @@ pipeline {
agent {
agent {
label 'docker-build'
label 'docker-build'
}
}
 
when {
 
anyOf {
 
environment name: 'ENVIRONMENT', value: 'production'
 
environment name: 'ENVIRONMENT', value: 'staging'
 
}
 
}
steps {
steps {
readTrusted 'src/main/docker/Dockerfile.jvm'
readTrusted 'src/main/docker/Dockerfile.jvm'
unstash 'target'
unstash 'target'
Loading