Skip to content

Commit

Permalink
Merge pull request #881 from jenkinsci/dduportal-patch-1
Browse files Browse the repository at this point in the history
chore(Jenkinsfile) fix `withEnv` syntax error
  • Loading branch information
dduportal committed Sep 24, 2024
2 parents f56a0cc + 78382f5 commit 4c52ef8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +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()) {
Expand Down

0 comments on commit 4c52ef8

Please sign in to comment.