2013-11-01 11 views
5

私のgit repoを認識するためにJenkinsを取得するのに問題があります。スクリーンショットは以下の通りです。私はgit clone https://blah/blah.gitを使用して、資格情報や鍵を必要とする読み取り専用でレポを複製すると言われました。コードを作成してビルドするだけです。Jenkinsをgitリポジトリに接続する方法

面白いのは、コマンドラインから同じコマンドを実行すると、それが動作し、ファイルがレポからプルダウンされます。

export GIT_SSL_NO_VERIFY=true 
git clone https://blah.com:8443/blah.git 

私がJenkinsにurlと環境変数を入力すると、リポジトリに接続できないというメッセージが表示されます。誰かがそれを働かせるために何をする必要があるかも知っていますか?あなたの助けを前にありがとう。

enter image description here

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 
+0

あなたはジェンキンスのログを投稿できますか? – Nathan

+0

「コマンドラインから同じコマンドを実行する」とは、「curl https://blah.com:8443/proj.git'のようなものだと思いますか? –

+0

@Nathanあなたがjenkinsのログを言うとき、私は仕事のビルドログを意味すると思いますか? – Classified

答えて

0

皆様のご意見、ご意見、ご協力ありがとうございます。私はこれがプラグインの問題だと思う。他の誰かが同じことを経験しました(original post here)。コマンドラインからこのコマンドを実行するか、JenkinsでBuild> Execute shell>コマンドを入力しても問題ありません。

私はGit Clientプラグイン= 1.4.3とGit Plugin 1.5.0を持っています。新しいプラグインがこれを修正するかどうかを待つつもりです。

+0

git pluginのメインページ(https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin)(「gotchas」を参照)に記載されている提案を試しましたか?完全修飾パスを使用するように指示しました実行可能ファイルのためのgit? – eis

+0

また、あなたの提案が同じページ – eis

+0

thxに提案されているように、 '-Dorg.jenkinsci.plugins.gitclient.Git.useCLI = false'をテストすることもできます。ええ、「つかまえ」は役に立たなかった。私はプラグインをアップグレードしましたが、まだ別のメッセージですが、まだ失敗しています。私はまだ2番目のコメントをurしようとしていないが、私は秒で試してみます。私は前と同じ条件を得るために私のプラグインを再度ダウングレードするかもしれません。うまくいけば – Classified

関連する問題