From c792713447a68d5e55b7e090fe036cee358bb7a2 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 24 Nov 2021 16:36:14 -0300 Subject: [PATCH] Fix Jenkins pipeline variable declaration --- .ci/Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 903cda4bb..cb0f0919c 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -80,7 +80,7 @@ def presetFlags = [ def anyFailure = false -def gitClone() { +def gitClone(branch) { /* Read git tag from environment or set the default one. */ if (env.GIT_COMMIT == null) env.GIT_COMMIT = branch @@ -193,7 +193,7 @@ pipeline { node('Linux') { try { /* Run git clone. */ - gitClone() + gitClone(branch) /* Switch to temp directory. */ dir("${env.WORKSPACE_TMP}/output") { @@ -227,7 +227,7 @@ pipeline { stage("$os $arch $dynarec $preset") { try { /* Run git clone. */ - gitClone() + gitClone(branch) /* Switch to output directory. */ dir("${env.WORKSPACE_TMP}/output") {