Skip to content

CI build fails - no git connection error - Jersey JIPP

Summary

Build fails to clone git repository from GitHub (the very first step of the build).

Steps to reproduce

Run the https://ci.eclipse.org/jersey/job/continuous-integration/job/PR-5090 job

What is the current bug behavior?

build fails with the

Caused by: hudson.plugins.git.GitException: Error performing git command: git init /home/jenkins/agent/workspace/continuous-integration_PR-5090
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2679)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2601)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2597)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1968)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:1040)
	... 12 more
Caused by: java.io.IOException: Cannot run program "git" (in directory "/home/jenkins/agent/workspace/continuous-integration_PR-5090"): error=2, No such file or directory
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
	at hudson.Proc$LocalProc.<init>(Proc.java:254)
	at hudson.Proc$LocalProc.<init>(Proc.java:223)
	at hudson.Launcher$LocalLauncher.launch(Launcher.java:997)
	at hudson.Launcher$ProcStarter.start(Launcher.java:509)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2664)
	... 16 more
Caused by: java.io.IOException: error=2, No such file or directory
	at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)

What is the expected correct behavior?

build passes OK

Relevant logs and/or screenshots

https://ci.eclipse.org/jersey/job/continuous-integration/job/PR-5090/2/console

Edited by Frederic Gurr