Bitbucketリポジトリに配置されたAndroidプロジェクト用のJenkinsの設定に取り組んでいます。私はビルドプロセスの一環としてgit fetchコマンド中にタイムアウトを継続的に取得しています。以下はコンソールログです。Bitbucketリポジトリのビルドプロセス中にJenkinsでGit Fetchが失敗する
started by user SUKHVIR SINGH
Building in workspace C:/RCJenkins Cloning the remote Git repository Cloning repository
https://[email protected]/scm/ /myproject.git git.exe init C:\RCJenkins # timeout=10 Fetching upstream changes from https://[email protected]/scm/ /myproject.git git.exe --version # timeout=10 using GIT_ASKPASS to set credentials Setting http proxy: abc.xyz.company.com:80 git.exe fetch --tags --progress https://[email protected]/scm/ /myproject.git +refs/heads/:refs/remotes/origin/ ERROR: Timeout after 10 minutes ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "git.exe fetch --tags --progress https://[email protected]/scm/ /myproject.git +refs/heads/:refs/remotes/origin/" returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1924) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1643) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:352) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:559) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1075) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1115) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485) at hudson.model.Run.execute(Run.java:1735) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405) ERROR: Error cloning remote repo 'origin' Finished: FAILURE
私がこれまでにやった: -
1)ダウンロードし、私のローカルマシン 2)作成した管理者ユーザーに最新の安定ジェンキンス2.60.2をインストールしました。 3)フリースタイルジョブを作成しました。 4)リポジトリのURL「https://[email protected]/scm/ /myproject.git」を使用するようにジョブを設定し、Jenkinsの資格情報マネージャにリポジトリの資格情報を追加しました。
以前使用していたワークスペースには私のマシンで正しい権限がなく、gitコマンドラインでも機能しませんでした。今私は書き込み/読み取り権限を持つカスタムワークスペースの場所を使用するようにジョブ設定を変更しています。 私はgitコマンドをコマンドラインでワークスペースで実行できますが、Jenkinsを通じてビルドプロセスを開始すると、上記のタイムアウトエラーが発生します。以下は私の仕事の構成のスクリーンショットです。ネットワーク上で起こっていただきました!
この種のトラフィックにはプロキシサーバーが必要ですか? Bitbucket Serverインスタンスを含め、すべてが内部的なものに見えるので、ネットワーク構成によってはプロキシを経由する必要がない場合があります。 –
私は既にJenkins - > manage plugins> Advancedにプロキシの詳細を追加しました。私はJenkinsのテスト接続ボタンを使ってプロキシをテストしましたが、成功しました。実際、私は社内ネットワークで働いているので、プロキシがあります。 –
パブリックリポジトリを構築しようとしましたが、ビルドできました。資格情報に関連するものと思われますが、何を把握する必要があります。 –