From 58df2c1150a51f562ee9d183e5453426072affba Mon Sep 17 00:00:00 2001 From: The_Spider Date: Tue, 29 Mar 2022 18:28:25 -0500 Subject: [PATCH] moves variable set to script block --- build-alpine-glibc.jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-alpine-glibc.jenkins b/build-alpine-glibc.jenkins index 99bef95..080d3f9 100644 --- a/build-alpine-glibc.jenkins +++ b/build-alpine-glibc.jenkins @@ -32,9 +32,9 @@ pipeline { stages { stage ('Initalize Jenkins') { steps { - workspace = pwd() - container ('alpine') { - script { + script { + workspace = pwd() + container ('alpine') { sh """ if [ ! -f "/usr/bin/curl" ] || [ ! -x "/usr/bin/curl" ]; then apk add --no-cache curl