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 {