2016-08-25 1 views
2

https를 통해 호스팅되는 repo에 연결하는 동안 jenkins git 플러그인을 사용하는 데 문제가 있습니다.Jenkins git plugin : 피어의 인증서 발급자가 인식되지 않습니다.

Baue in Arbeitsbereich /opt/jenkins/jobs/TestJob2/workspace 
> git rev-parse --is-inside-work-tree # timeout=10 
Fetching changes from the remote Git repository 
> git config remote.origin.url https://my.host.de/group/project # timeout=10 
Fetching upstream changes from https://my.host.de/group/project 
> git --version # timeout=10 
using GIT_ASKPASS to set credentials Jenkins at my.host.de 
> git fetch --tags --progress https://my.host.de/group/project +refs/heads/*:refs/remotes/origin/* 
ERROR: Error fetching remote repo 'origin' 
hudson.plugins.git.GitException: Failed to fetch from https://my.host.de/group/project 
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:766) 
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1022) 
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1053) 
    at hudson.scm.SCM.checkout(SCM.java:485) 
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) 
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 
    at hudson.model.Run.execute(Run.java:1738) 
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
    at hudson.model.ResourceController.execute(ResourceController.java:98) 
    at hudson.model.Executor.run(Executor.java:410) 
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://my.host.de/group/project +refs/heads/*:refs/remotes/origin/*" returned status code 128: 
stdout: 
stderr: fatal: unable to access 'https://my.host.de/group/project/': Peer's Certificate issuer is not recognized. 

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1709) 
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1438) 
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63) 
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314) 
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:764) 
    ... 11 more 
ERROR: null 
Finished: FAILURE 

SSH를 사용할 수 없습니다. 인증서가 정상이며 모든 것이 훌륭해 보입니다.

curl -Lv에는 오류가 표시되지 않습니다.

ssh를 통해 로그인 할 때 저장소 컴퓨터를 로컬에서 복제 할 수 있으며 오류 메시지도 표시되지 않습니다.

변경해야하는 스위치는 어디에 있습니까?

jenkins가 실행되고있는 사용자에 대해 git 속성 http.sslVerify을 false로 설정하면이 동작을 변경할 수 있지만 이는 단지 일시적인 해결책 일뿐입니다.

답변

2

방금 ​​이런 문제를 조사하는 데 한 시간을 보냈습니다. 내가 테스트 한 것은 마스터에서 모든 것이 커스텀 CA가 시스템에 구성되어 잘 작동한다는 것입니다. 불행히도 ALL 슬레이브가 작동하려면 적절한 gitconfig 또는 CA 인증서가 설치되어 있어야합니다.

+1

제 경우에는 도움이되었지만 답변이 합법적 인 것처럼 보입니다.) – Zarathustra

관련 문제