2016-07-15 7 views
0

Ich bin ein relativer Neuling mit Jenkins und versuche, einfach eine Build von Code auf Bitbucket gespeichert laufen. Ich benutze Git. Ich habe Setup den Job Quellcodeverwaltung als https-Protokoll als: url: https://[email protected]/myaccount/myrepo.git Credentials: Benutzername/PasswortJenkins: Fehler: Error fetching remote Repo 'Herkunft'

der ‚bauen‘ Abschnitt verweist auf die pom.xml in der Wurzel und führt das saubere Test Maven Ziel

Ich habe das Git-Plugin 2.5.2

Ich verwende Jenkins als Windows-Dienst (Windows 10).

Der Fehler, das Projekt auf den Aufbau ist

ERROR: Timeout after 10 minutes 

git.exe config --local --remove-section credential # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://[email protected]/username/myrepo.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:799) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1055) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1270) 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:1720) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Caused by: hudson.plugins.git.GitException: Command "git.exe -c core.askpass=true fetch --tags --progress https://[email protected]/username/myrepo.git +refs/heads/:refs/remotes/origin/" returned status code -1:

Jede Beratung

begrüßen
+0

Es ist sehr gut möglich, git fragt nach Passwort trotz nicht zu dürfen (nicht-interaktiv Shell), und dies ist eine private Repo tun müssen. Sie müssen das Passwort irgendwie anders angeben. –

+0

Können Sie bitbucket.org von einem Build-Schritt in Ihrem Job aus pingen? –

Antwort

0

wie ich hier https://stackoverflow.com/a/43964812/908936 beantwortet: mit

try Verwendung des git Credential-Cache zu deaktivieren

git config --global --unset credential.helper 

Sie können auch

git config --system --unset credential.helper if this has been set in the system config file