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}' + } } } }