From e452bd779a73547ba7d7ba44dbe9309cc7576f78 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sun, 12 Apr 2026 05:07:42 -0300 Subject: [PATCH] ci: make metis image publish stages opt-in for SCM runs --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 9cd61da..755084d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -94,6 +94,13 @@ spec: options { disableConcurrentBuilds() } + parameters { + booleanParam( + name: 'PUBLISH_IMAGES', + defaultValue: false, + description: 'Build and push runtime images (enable for release runs).' + ) + } triggers { pollSCM('H/5 * * * *') } @@ -155,6 +162,9 @@ spec: } stage('Prep toolchain') { + when { + expression { return params.PUBLISH_IMAGES } + } steps { container('builder') { sh ''' @@ -167,6 +177,9 @@ spec: } stage('Compute version') { + when { + expression { return params.PUBLISH_IMAGES } + } steps { container('builder') { script { @@ -184,6 +197,9 @@ spec: } stage('Buildx setup') { + when { + expression { return params.PUBLISH_IMAGES } + } steps { container('builder') { sh ''' @@ -212,6 +228,9 @@ spec: } stage('Build & push images') { + when { + expression { return params.PUBLISH_IMAGES } + } steps { container('builder') { sh '''