From 90ac1b642f79ceeec12591f49805eab09d3d83b0 Mon Sep 17 00:00:00 2001 From: ermisw Date: Wed, 4 Oct 2023 12:19:54 +0200 Subject: [PATCH] active choice --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b867fb8..8abb6a6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,11 +27,13 @@ pipeline { stages { stage('Refresh properties') { steps { - if (Refresh) { - currentBuild.result = 'ABORTED' - error('Stopping early…') + script { + if (Refresh) { + currentBuild.result = 'ABORTED' + error('Stopping early…') + } } - } + } } stage('TF Plan') { steps {