From 0a474a1ee0fcd655d618a8b9c197dae8dc66a0ca Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Tue, 24 Sep 2024 18:49:13 +0200 Subject: [PATCH 1/2] chore(Jenkinsfile) fix `withEnv` syntax error --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9cc03d3be..d67f56196 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,10 +81,7 @@ pipeline { script { def tagItems = env.TAG_NAME.split('-') if(tagItems.length == 2) { - withEnv( - ["REMOTING_VERSION=${tagItems[0]}"], - ["BUILD_NUMBER=${tagItems[1]}"] - ) { + withEnv(["REMOTING_VERSION=${tagItems[0]}", "BUILD_NUMBER=${tagItems[1]}"]) { // This function is defined in the jenkins-infra/pipeline-library infra.withDockerCredentials { if (isUnix()) { From 78382f5b587076d432e5afb948dd29f3a2483b52 Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Tue, 24 Sep 2024 18:54:33 +0200 Subject: [PATCH 2/2] Update Jenkinsfile Co-authored-by: lemeurherveCB <137290663+lemeurherveCB@users.noreply.github.com> --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d67f56196..6a111ea15 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,7 +81,10 @@ pipeline { script { def tagItems = env.TAG_NAME.split('-') if(tagItems.length == 2) { - withEnv(["REMOTING_VERSION=${tagItems[0]}", "BUILD_NUMBER=${tagItems[1]}"]) { + withEnv([ + "REMOTING_VERSION=${tagItems[0]}", + "BUILD_NUMBER=${tagItems[1]}", + ]) { // This function is defined in the jenkins-infra/pipeline-library infra.withDockerCredentials { if (isUnix()) {