亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

致命:詹金斯身份驗證失敗

致命:詹金斯身份驗證失敗

喵喔喔 2023-07-13 15:47:42
早上好,伙計們,我在詹金斯中構建管道時遇到問題,有時一些作業返回身份驗證錯誤,有時它們正在工作。這是 Jenkins 版本 2.164.2,git 插件版本 3.11,git 客戶端插件是 2.8.0 由上游項目“PIPELINE_OI”構建號 35 啟動,最初是由以下原因引起的:Started by user Administrador Jenkins OI[EnvInject] - Loading node environment variables.Building in workspace /var/lib/jenkins/workspace/TRUNK/AUDITORIA J14/poi-auditoria-commons-j14using credential dbebfd81-9cc5-4693-ad12-5b7f0e7dc845Cloning the remote Git repositoryCloning repository https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git> git init /var/lib/jenkins/workspace/TRUNK/AUDITORIA J14/poi-auditoria-commons-j14 # timeout=10Fetching upstream changes from https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git> git --version # timeout=10using GIT_ASKPASS to set credentials > git fetch --tags --progress https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git +refs/heads/*:refs/remotes/origin/*ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException: Command "git fetch --tags --progress https://innersource.accenture.com/scm/pmoi/auditoria-vj14_poi-auditoria-commons-j14.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:有時通過,有時返回此身份驗證錯誤。
查看完整描述

3 回答

?
繁星點點滴滴

TA貢獻1803條經驗 獲得超3個贊

將帶有身份驗證的 https 調用類型更改為通過 ssh 的公鑰



查看完整回答
反對 回復 2023-07-13
?
慕神8447489

TA貢獻1780條經驗 獲得超1個贊

我通過將 SSH 公鑰添加到 Github 解決了這個問題。我在 Docker 中使用 Jenkins,因此我執行到容器中,生成 ssh 密鑰,將公鑰添加到 Github,并將私鑰添加到 Jenkins 憑證,瞧!有效。實際上,當我嘗試“從 SCM 進行管道”將公共 SSH 密鑰添加到您的 Github 配置文件時,我實際上添加了此身份驗證錯誤


查看完整回答
反對 回復 2023-07-13
?
猛跑小豬

TA貢獻1858條經驗 獲得超8個贊

就我而言,我必須禁用默認 Windows Git 安裝附帶的憑據助手:

$?git?config?--system?--unset?credential.helper

在這種情況下,Jenkins 將控制 Git 身份驗證。


查看完整回答
反對 回復 2023-07-13
  • 3 回答
  • 0 關注
  • 361 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號