From ef2bf6a1166fcc3ddc18247198648271149dcd9a Mon Sep 17 00:00:00 2001 From: ermisw Date: Wed, 4 Oct 2023 12:13:50 +0200 Subject: [PATCH] active choice --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 012cebc..4a64e1c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline { } parameters { - string(name: 'DEMO NAME', defaultValue: 'demo', description: 'Enter the name of the demo') + booleanParam(name: 'refresh', defaultValue: false, description: 'Refresh pipeline properties') } // environment { // //KUBECONFIG = credentials('kubernetes-config') @@ -31,6 +31,12 @@ pipeline { // sh 'python --version' // } // } + stage('Refresh properties') { + if (Refresh) { + currentBuild.result = 'ABORTED' + error('Stopping early…') + } + } stage('TF Plan') { // agent { // docker {