{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSCAP/jenkins/issues/6","labels_url":"https://api.github.com/repos/OpenSCAP/jenkins/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/OpenSCAP/jenkins/issues/6/comments","events_url":"https://api.github.com/repos/OpenSCAP/jenkins/issues/6/events","html_url":"https://github.com/OpenSCAP/jenkins/issues/6","id":122051248,"number":6,"title":"Jenkins raises exceptions while testing pull requests","user":{"login":"jan-cerny","id":9050916,"avatar_url":"https://avatars.githubusercontent.com/u/9050916?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-cerny","html_url":"https://github.com/jan-cerny","followers_url":"https://api.github.com/users/jan-cerny/followers","following_url":"https://api.github.com/users/jan-cerny/following{/other_user}","gists_url":"https://api.github.com/users/jan-cerny/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-cerny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-cerny/subscriptions","organizations_url":"https://api.github.com/users/jan-cerny/orgs","repos_url":"https://api.github.com/users/jan-cerny/repos","events_url":"https://api.github.com/users/jan-cerny/events{/privacy}","received_events_url":"https://api.github.com/users/jan-cerny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-14T14:17:25Z","updated_at":"2015-12-15T13:31:21Z","closed_at":null,"body":"It happened to me twice today. Jenkins failed to build a pull request from github. It gave a big exception.\r\nSee the log:\r\n```\r\nGitHub pull request #270 of commit 060f336dd7c8b2e72e900f974c4d202a22737560, no merge conflicts.\r\nSetting status of 060f336dd7c8b2e72e900f974c4d202a22737560 to PENDING with url https://jenkins.open-scap.org/job/openscap-pull-requests/283/ and message: 'Build started sha1 is merged.'\r\n[EnvInject] - Loading node environment variables.\r\nBuilding remotely on el6 (node-el6 rhel6) in workspace /home/jenkins/workspace/openscap-pull-requests\r\n > git rev-parse --is-inside-work-tree # timeout=10\r\nFetching changes from the remote Git repository\r\n > git config remote.origin.url git://github.com/OpenSCAP/openscap.git # timeout=10\r\nFetching upstream changes from git://github.com/OpenSCAP/openscap.git\r\n > git --version # timeout=10\r\n > git fetch --tags --progress git://github.com/OpenSCAP/openscap.git +refs/pull/*:refs/remotes/origin/pr/*\r\nERROR: Error fetching remote repo 'origin'\r\nhudson.plugins.git.GitException: Failed to fetch from git://github.com/OpenSCAP/openscap.git\r\n\tat hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:763)\r\n\tat hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012)\r\n\tat hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043)\r\n\tat hudson.scm.SCM.checkout(SCM.java:485)\r\n\tat hudson.model.AbstractProject.checkout(AbstractProject.java:1276)\r\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)\r\n\tat jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)\r\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)\r\n\tat hudson.model.Run.execute(Run.java:1738)\r\n\tat hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)\r\n\tat hudson.model.ResourceController.execute(ResourceController.java:98)\r\n\tat hudson.model.Executor.run(Executor.java:410)\r\nCaused by: hudson.plugins.git.GitException: Command \"git fetch --tags --progress git://github.com/OpenSCAP/openscap.git +refs/pull/*:refs/remotes/origin/pr/*\" returned status code 128:\r\nstdout: \r\nstderr: fatal: Unable to look up github.com (port 9418) (Temporary failure in name resolution)\r\n\r\n\tat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)\r\n\tat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388)\r\n\tat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62)\r\n\tat org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313)\r\n\tat org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)\r\n\tat org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)\r\n\tat hudson.remoting.UserRequest.perform(UserRequest.java:120)\r\n\tat hudson.remoting.UserRequest.perform(UserRequest.java:48)\r\n\tat hudson.remoting.Request$2.run(Request.java:326)\r\n\tat hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\tat ......remote call to el6(Native Method)\r\n\tat hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)\r\n\tat hudson.remoting.UserResponse.retrieve(UserRequest.java:220)\r\n\tat hudson.remoting.Channel.call(Channel.java:781)\r\n\tat org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:145)\r\n\tat sun.reflect.GeneratedMethodAccessor217.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:131)\r\n\tat com.sun.proxy.$Proxy51.execute(Unknown Source)\r\n\tat hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761)\r\n\t... 11 more\r\nERROR: null\r\nAn attempt to send an e-mail to empty list of recipients, ignored.\r\nSetting commit status on GitHub for https://github.com/OpenSCAP/openscap/commit/588187a15286d75f2f4ab6154dfdcff3c52ed7d8\r\nSetting status of 060f336dd7c8b2e72e900f974c4d202a22737560 to FAILURE with url https://jenkins.open-scap.org/job/openscap-pull-requests/283/ and message: ' No test results found.'\r\nFinished: FAILURE\r\n```"},"comment":{"url":"https://api.github.com/repos/OpenSCAP/jenkins/issues/comments/164765391","html_url":"https://github.com/OpenSCAP/jenkins/issues/6#issuecomment-164765391","issue_url":"https://api.github.com/repos/OpenSCAP/jenkins/issues/6","id":164765391,"user":{"login":"isimluk","id":6666052,"avatar_url":"https://avatars.githubusercontent.com/u/6666052?v=3","gravatar_id":"","url":"https://api.github.com/users/isimluk","html_url":"https://github.com/isimluk","followers_url":"https://api.github.com/users/isimluk/followers","following_url":"https://api.github.com/users/isimluk/following{/other_user}","gists_url":"https://api.github.com/users/isimluk/gists{/gist_id}","starred_url":"https://api.github.com/users/isimluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isimluk/subscriptions","organizations_url":"https://api.github.com/users/isimluk/orgs","repos_url":"https://api.github.com/users/isimluk/repos","events_url":"https://api.github.com/users/isimluk/events{/privacy}","received_events_url":"https://api.github.com/users/isimluk/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T13:31:21Z","updated_at":"2015-12-15T13:31:21Z","body":"I guess having the scheduler parsing the output can be hard.\r\n\r\nDoes it make sense for the slave to re-try the `git fetch` few times before it finally fails?"}}