From d0d919fd30e9d3a635c5433b1ed94f500e079293 Mon Sep 17 00:00:00 2001 From: Martin Lowe <martin.lowe@eclipse-foundation.org> Date: Thu, 16 May 2024 13:45:45 -0400 Subject: [PATCH] Fix docker build running on main branch --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 17c0f76..a785938 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -161,6 +161,12 @@ 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' -- GitLab