Jenkins hängt an "Upstream-Änderungen vom Ursprung holen"
Ich versuche, Jenkins auf einem Windows Server 2012-Computer einzurichten, und es treten große Schwierigkeiten auf.
Dinge, die ich getan habe:
Erstellt ein passwortlosesid_rsa
, undid_rsa.pub
Erschuf einknown_hosts
Datei für bitbucket.org mitssh.exe -T bitbucket.org
und akzeptieren, um den Host hinzuzufügen.HinzugefügtE:
auf systemweite HOME-VariableIch habe diese Dateien hinzugefügtC:/Windows/SysWOW64/config/systemprofile/.ssh
ebenso gut wieE:/.ssh
Ich habe meinen öffentlichen Schlüssel als Bereitstellungsschlüssel mit Bitbucket verknüpft.Ich habe alle meine URLs, Benutzernamen usw. dreifach überprüft.Ich habe sogar manuell aus dem Repository gezogen, um eine erste Basis einzurichtenC:/Program Files (x86)/Jenkins/jobs/MyProject/workspace/
Und doch hängt es immer noch an
Building in workspace C:\Program Files (x86)\Jenkins\jobs\MyProject\workspace
Checkout:workspace / C:\Program Files (x86)\Jenkins\jobs\MyProject\workspace - hudson.remoting.LocalChannel@13ca972
Using strategy: Default
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Ich habe es ungefähr 20 Minuten gegeben, es ist also keine Geschwindigkeit / Größe des Repo-Problems. Wenn ich storniere, wird Folgendes zurückgegeben:
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
hudson.plugins.git.GitException: Error performing command: C:\Program Files (x86)\Git\bin\git.exe fetch -t origin +refs/heads/*:refs/remotes/origin/*
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:780)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:739)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:160)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:230)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:793)
at hudson.plugins.git.GitSCM.access$000(GitSCM.java:57)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:976)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
at hudson.FilePath.act(FilePath.java:865)
at hudson.FilePath.act(FilePath.java:838)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1364)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:670)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:575)
at hudson.model.Run.execute(Run.java:1575)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Caused by: java.lang.InterruptedException
at java.lang.ProcessImpl.waitFor(Native Method)
at hudson.Proc$LocalProc.join(Proc.java:319)
at hudson.Launcher$ProcStarter.join(Launcher.java:360)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:769)
... 19 more
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:981)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
at hudson.FilePath.act(FilePath.java:865)
at hudson.FilePath.act(FilePath.java:838)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1364)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:670)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:575)
at hudson.model.Run.execute(Run.java:1575)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Ich bin mit meinem Latein am Ende, also schätze ich jede Hilfe, die ich bekommen kann. Hier sind einige ausgewählte Artikel, die ich ohne Verbesserung ausprobiert habe.
Authentifizieren Sie Jenkins CI für das private Github-Repository
Erlaubnis verweigert (publickey) beim Einrichten von Jenkins
Hudson Git Plugin funktioniert nicht unter Windows
http://computercamp.cdwilson.us/jenkins-git-clone-via-ssh-on-windows-7-x64