2016-04-26 101 views
0

我使用Jenkins,GitBlit集成爲我的公司執行POC。Jenkins GitBlit集成

我已經安裝了GitBlit &詹金斯和遵循以下步驟

  1. 安裝詹金斯& GitBlit
  2. 生成自簽名證書使用我IP地址
  3. 使用authority.cmd中創建一個Ruby項目黃瓜gitblit
  4. 在編輯 - >接收選擇GitBlit存儲庫添加jenkins預接收腳本
  5. 在gitblit-1.7.1 \數據\常規我已經加入我的詹金斯其再次託管在本地主機

這裏是我的網址

Jenkins :- http://localhost:8080/ 

GitBlit :- https://--.--.---.100:8443 

GitBlit repo url :- https://--.--.---.100:8443/r/testGit.git 
  • 在詹金斯,我創建了自由泳項目
  • 在源代碼管理添加回購網址
  • 我在這裏面對的問題詹金斯無法連接及以下錯誤消息和screensh OT

    Failed to connect to repository : Command "git.exe -c core.askpass=true ls- remote -h https://--.--.---.100:8443/r/testGit.git HEAD" returned status code 128: 
    stdout: 
    stderr: fatal: unable to access 'https://--.--.---.100:8443/r/testGit.git/': SSL certificate problem: self signed certificate in certificate chain 
    

    jenkins error message

    回答

    0

    您的選擇是......

    1. 切換到http://,而不是https://開頭
    2. 切換到SSH://而不是HTTPS: //
    3. 切換到git://而不是https://
    4. 購買簽名的SSL證書
    5. 指示詹金斯的Git不驗證證書
    +0

    1.我們如何能指導詹金斯和git沒有驗證證書 2.什麼是使用它 – testerBDD

    +0

    「混帳配置http.sslVerify假」的安全問題可以很容易的安全問題在這裏不用重寫就可以研究。 –