Jenkins Artifactory Release Plugin无法提交标记(Windows主机)

时间:2016-12-22 17:43:38

标签: git jenkins artifactory

Jenkins正在Windows Server 2012主机上运行。

构建成功运行,直到应标记版本。

构建日志:

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

当通过命令行手动运行上述步骤时,似乎问题是git commit没有正确处理井号(#timetime = 10),导致错误:

  

错误:pathspec'#'与git已知的任何文件都不匹配。

1 个答案:

答案 0 :(得分:1)

此错误的根本原因是我未能设置" Global Config user.name" Git插件的属性。

相关问题