From 9a5b8c20e155acca784e7d87214968cd38f082cc Mon Sep 17 00:00:00 2001 From: "Greg L. Turnquist" Date: Fri, 14 Apr 2023 11:08:23 -0500 Subject: [PATCH] Make building of container conditional. Only changes to the CI's Dockerfile or java-tools.properties should trigger the building of a new container. --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 929b121..5c4780f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,6 +15,12 @@ pipeline { stages { stage('Build the Spring Data release tools container') { + when { + anyOf { + changeset 'ci/Dockerfile' + changeset 'ci/java-tools.properties' + } + } agent { label 'data' }