Skip to content
Snippets Groups Projects
Commit bb97802b authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Merge branch 'malowe/main/patch' into 'main'

Add filter to block docker build for standard branches in Jenkins

See merge request !15
parents 67fa8407 f972e5e0
No related branches found
No related tags found
1 merge request!15Add filter to block docker build for standard branches in Jenkins
Pipeline #13961 passed
......@@ -118,9 +118,14 @@ pipeline {
agent {
label 'docker-build'
}
when {
anyOf {
environment name: 'ENVIRONMENT', value: 'production'
environment name: 'ENVIRONMENT', value: 'staging'
}
}
steps {
readTrusted 'src/main/docker/Dockerfile.jvm'
unstash 'target'
sh '''
docker build -f src/main/docker/Dockerfile.jvm --no-cache -t ${IMAGE_NAME}:${TAG_NAME} -t ${IMAGE_NAME}:latest .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment