diff options
Diffstat (limited to 'vars')
-rw-r--r-- | vars/buildPackage.groovy | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy index 511867a6..ca901481 100644 --- a/vars/buildPackage.groovy +++ b/vars/buildPackage.groovy @@ -37,6 +37,11 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) { agent { label "ec2_amd64" } + environment { + // get relative directory path to Jenkinsfile + BASE_DIR = getJenkinsfilePath() + CHANGESET_DIR = getChangeSetPath() + } steps { script { // create container name on demand @@ -68,11 +73,6 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) { reuseNode true } } - environment { - // get relative directory path to Jenkinsfile - BASE_DIR = getJenkinsfilePath() - CHANGESET_DIR = getChangeSetPath() - } steps { script { cloneAndBuild(description, 'amd64', pkgList, buildCmd) @@ -100,11 +100,6 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) { when { equals expected: true, actual: buildArm } - environment { - // get relative directory path to Jenkinsfile - BASE_DIR = getJenkinsfilePath() - CHANGESET_DIR = getChangeSetPath() - } steps { script { cloneAndBuild(description, 'arm64', pkgList, buildCmd) |