GIT 플러그인 Jenkins를 사용하여 GIT 코드 양식을 가져 오려고 시도 중입니다. 작업이 종속 머신에서 실행 중입니다.Jenkins의 GIT 플러그인이 GIT 저장소에 연결할 수없는 이유는 무엇입니까?
MASTER
시스템 http_proxy=mycom.domain.com:80
을 가지며 SLAVE
시스템에 정의 http_proxy
없다.
SLAVE
컴퓨터에서 git clone을 로컬에서 수행 할 때마다 완벽하게 작동하지만 Jenkins에서 성공하지 못했습니다. 그것은 MASTER
시스템이 SLAVE
시스템에 존재하지 않는 HTTP 프록시를 설정하려고하기 때문에
Building remotely on SLAVE in workspace /data/test
> /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> /usr/bin/git config remote.origin.url https://github.domain.com/Project-Digital/Project-eCommerce.git # timeout=10
Fetching upstream changes from https://github.domain.com/Project-Digital/Project-eCommerce.git
> /usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials
Setting http proxy: mycom.domain.com:80
> /usr/bin/git fetch --tags --progress https://github.domain.com/Project-Digital/Project-eCommerce.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://github.domain.com/Project-Digital/Project-eCommerce.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094)
at hudson.scm.SCM.checkout(SCM.java:495)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1728)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --progress https://github.domain.com/Project-Digital/Project-eCommerce.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: error: Failed connect to github.build.ge.com:80; Operation now in progress while accessing https://github.domain.com/Project-Digital/Project-eCommerce.git/info/refs
인가 :
그것은 다음과 같은 오류를 던지고있다?
예인 경우 어떻게합니까?
아니면 내가 놓친 다른 것이 있습니까?
"젠킨스"사용자를 ssh 키 쌍으로 이미 종료중인 사용자로 변경하는 것은 어떻습니까? – ANIL
에 대한 답변은 이미 답변 된 질문입니다. http://stackoverflow.com/questions/15314760/managing-ssh-keys-within-jenkins-for-git – lazyborg