[英]git-push command failed (401 Unauthorized) when using maven-release-plugin on Jenkins
We have configured a Jenkins job that should release our Maven project with the maven-release-plugin . 我们配置了一个Jenkins作业,该作业应使用maven-release-plugin释放我们的Maven项目。
Checking out and building is working without problems but then the following error occurs: 签出并进行构建时没有问题,但是发生以下错误:
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] error: The requested URL returned error:
401 Unauthorized while accessing
http://server.com:8374/gitblit/r/my-parent-project/info/refs
We are using jgit to handle the Git commands. 我们正在使用jgit处理Git命令。
What could be the problem when checking out works but pushing fails? 检出作品但推送失败时可能是什么问题?
现在可以使用以下参数进行工作:
-Dusername=myUserName -Dpassword=myPassword -DproviderImplementation=jgit
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.