Fehler: FEHLER beim Klonen, remote-repo 'Herkunft'
Versucht mit der configure-option, nicht in der Lage, die tools zu finden
Konfigurations-option und die git ausführbaren Abschnitt. Wie es scheint
tritt nach einem erfolgreichen build nur. Bitte helfen Sie.
Hier ist die Ausgabe erhalte ich nach dem erstellen des Projekts auf der Konsole die Ausgabe Abschnitt:
Building in workspace C:\Users\Anishas\.jenkins\workspace\Sample123
Cloning the remote Git repository
Cloning repository https://github.com/AnishaSalunkhe/HelloWorld.git
> C:\Users\Anishas\git init C:\Users\Anishas\.jenkins\workspace\Sample123 # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init C:\Users\Anishas\.jenkins\workspace\Sample123
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:656)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:463)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1057)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.plugins.git.GitException: Error performing command: C:\Users\Anishas\git init C:\Users\Anishas\.jenkins\workspace\Sample123
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1726)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1695)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1691)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1321)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:654)
... 12 more
Caused by: java.io.IOException: Cannot run program "C:\Users\Anishas\git" (in directory "C:\Users\Anishas\.jenkins\workspace\Sample123"): CreateProcess error=5, Access is denied
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:240)
at hudson.Proc$LocalProc.<init>(Proc.java:212)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
at hudson.Launcher$ProcStarter.start(Launcher.java:381)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1715)
... 16 more
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 22 more
ERROR: null
Finished: FAILURE
InformationsquelleAutor Learner | 2016-05-11
Du musst angemeldet sein, um einen Kommentar abzugeben.
Diese verschwendet so viel Zeit auf meinem Jenkins-Windows-slave.
Ich wusste, dass git war im Weg, weil ich ausgeführt, "wo git" in der build-job batch-Befehl.
Offenbar die Jenkins Git Plugin ausführt, * * bevor ** die Umwelt wird vererbt.
Stellen Sie IHREN SKLAVEN PFAD zu Git ( Just DO IT !! )
1) Gehen Sie zu Ihrem Windows-slave-Konfiguration
Verwalten Jenkins > Verwalten-Knoten
2) Wählen Sie Ihre slave-Konfiguration
3) Überprüfen Sie, Tool Standorten unter Knoten Eigenschaften
4) Geben Sie vollständige Pfad zu git executable einschließlich git.exe
Siehe screenshot:
Oh mein freaking Gott. DANKE.
meinen Tag gerettet! danke!
Das ist soo richtig,
InformationsquelleAutor Ed of the Mountain
Gehen
Manage Jenkins
/Global Tool Configuration
- und set -Path to Git executable
:InformationsquelleAutor Chandra Pal
den Pfad zu git.exe und nicht nur das Verzeichnis des git-Datei in die beiden Standorte der tool-Konfigurationen.
InformationsquelleAutor Learner
Manchmal dieser Fehler tritt auf, wenn Speicherplatz weniger. so prüfen Sie den Speicherplatz Ihres Rechners, auf dem jenkins läuft. 🙂
InformationsquelleAutor Kamini Naithani
Wenn jemand mit Jenkins mit frisch installiertem Xcode, müssen Sie Stimmen Sie den Lizenzbedingungen mit
sudo xcodebuild -license
oder Stimmen über UI.InformationsquelleAutor Gomfucius
Windows:
1. Git installieren, in windows-Maschine
2. Die git.exe Weg ist C:\Program Files\Git\cmd\git.exe (standardmäßig, sofern Sie während der installation ändern)
3.Jetzt muss der Weg der git.exe in Jenkins git plugin-tool
a)verwalten Jenkins>Global Tool Configuration>Git
b)Add git : name: nichts und Pfad:C:\Program Files\Git\cmd\git.exe
4. Erstellen Sie dann für Klon. Sollte ok sein
Linux CentOS7:
Gleiche Fehlermeldung, die ich bekommen habe und nach der installation von git in derselben Maschine waren Jenkins installiert, es ist gelöst.
yum install git
InformationsquelleAutor shafi