Jitkins가 내 git repo를 인식하는 데 문제가 있습니다. 스크린 샷은 다음과 같습니다. 나는 git clone https://blah/blah.git
을 사용하여 repo를 자격증 명 또는 키가 필요없는 읽기 전용으로 복제 할 것이라고 말했습니다. 나는 코드를 풀고 빌드하려고합니다.Jenkins가 git 저장소에 연결하는 방법
재미있는 점은 명령 줄에서 동일한 명령을 실행하면 작동하고 파일은 repo에서 가져온 것입니다.
export GIT_SSL_NO_VERIFY=true
git clone https://blah.com:8443/blah.git
젠킨스에서 url 및 환경 변수를 입력하면 저장소에 연결할 수 없다는 메시지가 나타납니다. 누구든지 내가 일하기 위해해야 할 일을 알고 있습니까? 귀하의 도움에 미리 감사드립니다.
UPDATE/설명 : 젠킨스는 서비스 계정 아래, 회사 내에서 사용자와 관련이없는 설치합니다.
업데이트 # 2 : 다음은 콘솔 출력입니다. 나는 약간을 소독했기 때문에 나는 사과를했다. 나는 뭔가를 놓친다.
Started by user anonymous
Building in workspace /home/hduser/.jenkins/workspace/analytics
Fetching changes from the remote Git repository
Fetching upstream changes from https://blah.com:8443/blah.git
FATAL: Failed to fetch from https://blah.com:8443/blah.gitt
hudson.plugins.git.GitException: Failed to fetch from https://blah.com:8443/blah.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:612)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:836)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:861)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:557)
at hudson.model.Run.execute(Run.java:1665)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:246)
Caused by: hudson.plugins.git.GitException: Failed to connect to https://blah.com:8443/blah.git
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getURLWithCrendentials(CliGitAPIImpl.java:1391)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:167)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:229)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:610)
... 10 more
젠킨스 로그를 게시 할 수 있습니까? – Nathan
"명령 줄에서 같은 명령을 실행합니다"나는 'curl https : //blah.com : 8443/proj.git'과 같은 것을 의미한다고 가정합니다. –
@ 네이슨 당신이 젠킨스 로그를 말할 때, 그 직업을위한 빌드 로그를 의미한다고 생각합니까? – Classified