diff --git a/test/groovy/ArtifactSetVersionTest.groovy b/test/groovy/ArtifactSetVersionTest.groovy index 17e111e6c..6ccae9f00 100644 --- a/test/groovy/ArtifactSetVersionTest.groovy +++ b/test/groovy/ArtifactSetVersionTest.groovy @@ -98,7 +98,7 @@ class ArtifactSetVersionTest extends BasePipelineTest { void testVersioningCustomGitUserAndEMail() { jsr.step.call(script: [commonPipelineEnvironment: jer.env], juStabGitUtils: gitUtils, buildTool: 'maven', gitSshUrl: 'myGitSshUrl', gitUserEMail: 'test@test.com', gitUserName: 'test') - assertEquals ('git -c user.email="test@test.com" -c user.name "test" commit -m \'update version 1.2.3-20180101010203_testCommitId\'', jscr.shell[7]) + assertEquals ('git -c user.email="test@test.com" -c user.name="test" commit -m \'update version 1.2.3-20180101010203_testCommitId\'', jscr.shell[7]) } @Test diff --git a/vars/artifactSetVersion.groovy b/vars/artifactSetVersion.groovy index 2ba4c35f7..3f495bc5d 100644 --- a/vars/artifactSetVersion.groovy +++ b/vars/artifactSetVersion.groovy @@ -88,7 +88,7 @@ def call(Map parameters = [:]) { sshagent([configuration.gitCredentialsId]) { def gitUserMailConfig = '' if (configuration.gitUserName && configuration.gitUserEMail) - gitUserMailConfig = "-c user.email=\"${configuration.gitUserEMail}\" -c user.name \"${configuration.gitUserName}\"" + gitUserMailConfig = "-c user.email=\"${configuration.gitUserEMail}\" -c user.name=\"${configuration.gitUserName}\"" try { sh "git ${gitUserMailConfig} commit -m 'update version ${newVersion}'"