From fee589984f5386516dd0be0571792a4e2c3f8713 Mon Sep 17 00:00:00 2001 From: Maciej Date: Mon, 12 Apr 2021 00:54:11 +0200 Subject: [PATCH] 3.1 fix --- Jenkinsfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5a671c2..588fde7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,11 +18,13 @@ pipeline { } stage('sh: Shell Script') { steps { - def image = docker.build('dock') - image.inside{ - sh 'chmod +x preparations.sh' - sh 'echo ${CUTOFF}' - sh './preparations.sh ${CUTOFF}' + script { + def image = docker.build('dock') + image.inside{ + sh 'chmod +x preparations.sh' + sh 'echo ${CUTOFF}' + sh './preparations.sh ${CUTOFF}' + } } } }