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 {