我正在使用Jenkins进行项目自动部署。在Jenkins上构建项目时,出现了这样的错误。
错误消息:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project my-project-name: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] error: The requested URL returned error: 403 Forbidden while accessing https://my-project.git/info/refs
[ERROR]
[ERROR] fatal: HTTP request failed
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
下面是pom.xml文件中的Maven版本插件。
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
</plugin>
...
进入https://my-project.git/info/refs
时,我得到了“请升级您的git客户端。
GitHub.com不再通过dumb-http:https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days“支持git。
但是我的git版本是1.7.1,大于1.6.6。
对错误消息有任何想法吗?