2016-11-28 7 views
6

GitリポジトリをポーリングするようにJenkinsを設定しました.SSLではなくhttpsを使用しています。次のURLが設定されており、ユーザー名とパスワードを使用しています。git fetch --tags --progressがJenkinsでタイムアウトしました。コマンドラインでうまく動作します。

https://[email protected]:8443/scm/ourrepo/ourrepo-ios.git 

ビルドを実行すると、ビルドは10分間停止してタイムアウトします。私はそれがタイムアウトする行をコピーして、ジェンキンスさんは(MacOSのサーバ)で実行さと同じマシン上にラインを命令することを貼り付けると、それが動作:

git fetch --tags --progress https://[email protected]:8443/scm/ourrepo/ourrepo-ios.git +refs/heads/*:refs/remotes/origin/* 

なぜそれが10分間立ち往生していますか?間違った資格情報を使用しようとしましたが、それは1秒で失敗します。巨大なレポではありません。


ログ:

Started by user Jenkins Admin 
Building in workspace /Users/Shared/Jenkins/Home/workspace/Build and test new commits on develop 
> git rev-parse --is-inside-work-tree # timeout=10 
Fetching changes from the remote Git repository 
> git config remote.origin.url https://[email protected]:8443/scm/ourrepo/ourrepo-ios.git # timeout=10 
Fetching upstream changes from https://[email protected]:8443/scm/ourrepo/ourrepo-ios.git 
> git --version # timeout=10 
using GIT_ASKPASS to set credentials 
> git fetch --tags --progress https://[email protected]:8443/scm/ourrepo/ourrepo-ios.git +refs/heads/*:refs/remotes/origin/* 
ERROR: Timeout after 10 minutes 
ERROR: Error fetching remote repo 'origin' 
hudson.plugins.git.GitException: Failed to fetch from https://[email protected]:8443/scm/ourrepo/ourrepo-ios.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 "git fetch --tags --progress https://[email protected]:8443/scm/ourrepo/ourrepo-ios.git +refs/heads/*:refs/remotes/origin/*" returned status code 143:stdout: 
stderr: 
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1745) 
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1489) 
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64) 
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315) 
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:801) 
    ... 11 more 
ERROR: null 
Finished: FAILURE 
+1

をGitのポーリングログは便利なものを表示していますか? –

+1

Jenkins 'ビルドのコンソール出力 'を元の投稿に添付できますか? –

+0

私はちょうどそれを追加しました –

答えて

3

ユーザーjenkinsがあなたのOSに存在し、それが正しい権限を持っているかどうかを確認してください。

はどのようにMac OS Xのjenkinsユーザー設定するには:http://www.cimgf.com/2015/05/26/setting-up-jenkins-ci-on-a-mac-2/

+0

Windowsで同じエラーについて考えてみませんか? – IronSean

+0

Windows上のJenkinsスレーブがユーザー "ローカルサービス"の下でサービスとして実行されている場合、別の「実際の」ユーザーに変更することができます。したがって、このユーザーでWindowsにログインし、コマンド(つまり、 "git clone")と任意のアクセス権を確認することができます。 – Ivan

+0

URLを更新してください。ページが見つかりません! –

関連する問題