Jenkins Artifactory Release Plugin Unable To Commit Tag (Windows Host Machine)

445 Views Asked by At

Jenkins is running on a Windows server 2012 host.

The build runs successfully up until the point where the release should be tagged.

Build log:

C:\build_tools\Git\cmd\git.exe config --get remote.origin.url # timeout=10
C:\build_tools\Git\cmd\git.exe add -u # timeout=10
C:\build_tools\Git\cmd\git.exe commit -F C:\Windows\TEMP\gitcommit4513460760895217486.txt # timeout=10
Failure in post build SCM action: Cannot commit [artifactory-release] Release version 2.1.1

when manually running the above steps via the command line, it appears the issue is that git commit does not properly handle the pound sign (# timeout=10), resulting in the error:

error: pathspec '#' did not match any file(s) known to git.

1

There are 1 best solutions below

1
On BEST ANSWER

The root cause of this error turns out to be that I had failed to set the "Global Config user.name" property for the Git Plugin.