簡體   English   中英

在Jenkins上使用maven-release-plugin時,git-push命令失敗(401未經授權)

[英]git-push command failed (401 Unauthorized) when using maven-release-plugin on Jenkins

我們配置了一個Jenkins作業,該作業應使用maven-release-plugin釋放我們的Maven項目。

簽出並進行構建時沒有問題,但是發生以下錯誤:

[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

我們正在使用jgit處理Git命令。

檢出作品但推送失敗時可能是什么問題?

現在可以使用以下參數進行工作:

-Dusername=myUserName -Dpassword=myPassword -DproviderImplementation=jgit

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM