We have configured a multi phase job where any changes in Git SCM will trigger two jobs. Among the two jobs any one of the job getting failed randomly while fetching the git changes. And, during the next build it's getting passed. Here is my error log.
11:41:52 Started by upstream project "1_CPU_Xtreme_Feedback" build number 3092 11:41:52 originally caused by: 11:41:52 Started by an SCM change 11:41:52 [EnvInject] - Loading node environment variables. 11:41:52 Building remotely on kcebuilder2 in workspace c:\jenkins_keivmcsi\workspace\CPU_XF_ARM9 11:41:55 Fetching changes from the remote Git repository 11:41:55 Fetching upstream changes from git:lift 11:42:14 FATAL: Failed to fetch from git:lift 11:42:14 hudson.plugins.git.GitException: Failed to fetch from git:lift 11:42:14 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:612) 11:42:14 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:836) 11:42:14 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:861) 11:42:14 at hudson.model.AbstractProject.checkout(AbstractProject.java:1411) 11:42:14 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) 11:42:14 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 11:42:14 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) 11:42:14 at hudson.model.Run.execute(Run.java:1665) 11:42:14 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 11:42:14 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:42:14 at hudson.model.Executor.run(Executor.java:246) 11:42:14 Caused by: hudson.plugins.git.GitException: Command "fetch -t git:lift +refs/heads/*:refs/remotes/origin/*" returned status code 128: 11:42:14 stdout: 11:42:14 stderr: ssh: Could not resolve hostname git: no address associated with name 11:42:14 fatal: Could not read from remote repository. 11:42:14 11:42:14 Please make sure you have the correct access rights 11:42:14 and the repository exists. 11:42:14 11:42:14 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:928) 11:42:14 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:902) 11:42:14 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:163) 11:42:14 at hudson.plugins.git.GitAPI.fetch(GitAPI.java:229) 11:42:14 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:42:14 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 11:42:14 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 11:42:14 at java.lang.reflect.Method.invoke(Unknown Source) 11:42:14 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299) 11:42:14 at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280) 11:42:14 at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239) 11:42:14 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 11:42:14 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 11:42:14 at hudson.remoting.Request$2.run(Request.java:328) 11:42:14 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 11:42:14 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 11:42:14 at java.util.concurrent.FutureTask.run(Unknown Source) 11:42:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 11:42:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 11:42:14 at java.lang.Thread.run(Unknown Source)
[JENKINS-28551] Git fetch fails randomly with status code 128
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 163396 ] | New: JNJira + In-Review [ 197189 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
If the upstream job is started in "node 1" and it triggers two jobs, if both the job starts running in "node 2", at least one job fails with this message. When triggered manually both the jobs are running successfully next time.