{"action":"created","comment":{"url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/comments/38892508","id":38892508,"diff_hunk":"@@ -249,22 +251,27 @@ private GoPluginApiResponse handleCheckout(GoPluginApiRequest goPluginApiRequest\n         String destinationFolder = (String) requestBodyMap.get(\"destination-folder\");\n         Map<String, Object> revisionMap = (Map<String, Object>) requestBodyMap.get(\"revision\");\n         String revision = (String) revisionMap.get(\"revision\");\n-        LOGGER.info(String.format(\"destination: %s. commit: %s\", destinationFolder, revision));\n+        for (int attempt = 0; attempt < CHECKOUT_ATTEMPTS; attempt++) {\n+            LOGGER.info(String.format(\"destination: %s. commit: %s, attempt: %s\", destinationFolder, revision, attempt));","path":"src/main/java/in/ashwanthkumar/gocd/github/GitHubPRBuildPlugin.java","position":15,"original_position":15,"commit_id":"9870779db5174160fd0e245031fc92039adec6df","original_commit_id":"9870779db5174160fd0e245031fc92039adec6df","user":{"login":"ashwanthkumar","id":600279,"avatar_url":"https://avatars.githubusercontent.com/u/600279?v=3","gravatar_id":"","url":"https://api.github.com/users/ashwanthkumar","html_url":"https://github.com/ashwanthkumar","followers_url":"https://api.github.com/users/ashwanthkumar/followers","following_url":"https://api.github.com/users/ashwanthkumar/following{/other_user}","gists_url":"https://api.github.com/users/ashwanthkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwanthkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwanthkumar/subscriptions","organizations_url":"https://api.github.com/users/ashwanthkumar/orgs","repos_url":"https://api.github.com/users/ashwanthkumar/repos","events_url":"https://api.github.com/users/ashwanthkumar/events{/privacy}","received_events_url":"https://api.github.com/users/ashwanthkumar/received_events","type":"User","site_admin":false},"body":"Can we also add attempt count as part of the log? It helps while debugging. ","created_at":"2015-09-08T06:08:10Z","updated_at":"2015-09-08T06:08:10Z","html_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/pull/50#discussion_r38892508","pull_request_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/comments/38892508"},"html":{"href":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/pull/50#discussion_r38892508"},"pull_request":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/50","id":43577946,"html_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/pull/50","diff_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/pull/50.diff","patch_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/pull/50.patch","issue_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/50","number":50,"state":"open","locked":false,"title":"Add checkout attempts for stability and fix minor issues","user":{"login":"SOVALINUX","id":1522630,"avatar_url":"https://avatars.githubusercontent.com/u/1522630?v=3","gravatar_id":"","url":"https://api.github.com/users/SOVALINUX","html_url":"https://github.com/SOVALINUX","followers_url":"https://api.github.com/users/SOVALINUX/followers","following_url":"https://api.github.com/users/SOVALINUX/following{/other_user}","gists_url":"https://api.github.com/users/SOVALINUX/gists{/gist_id}","starred_url":"https://api.github.com/users/SOVALINUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SOVALINUX/subscriptions","organizations_url":"https://api.github.com/users/SOVALINUX/orgs","repos_url":"https://api.github.com/users/SOVALINUX/repos","events_url":"https://api.github.com/users/SOVALINUX/events{/privacy}","received_events_url":"https://api.github.com/users/SOVALINUX/received_events","type":"User","site_admin":false},"body":"1. Add checkout attempts, since stats showed it can be very unstable regarding of network\r\n2. Fix pom and resource versions","created_at":"2015-08-27T23:13:25Z","updated_at":"2015-09-08T06:08:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecc3bd38c78f57d74a6a851c06ed00a57ec7908d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/50/commits","review_comments_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/50/comments","review_comment_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/50/comments","statuses_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/statuses/9870779db5174160fd0e245031fc92039adec6df","head":{"label":"SOVALINUX:feature/checkout_attempts","ref":"feature/checkout_attempts","sha":"9870779db5174160fd0e245031fc92039adec6df","user":{"login":"SOVALINUX","id":1522630,"avatar_url":"https://avatars.githubusercontent.com/u/1522630?v=3","gravatar_id":"","url":"https://api.github.com/users/SOVALINUX","html_url":"https://github.com/SOVALINUX","followers_url":"https://api.github.com/users/SOVALINUX/followers","following_url":"https://api.github.com/users/SOVALINUX/following{/other_user}","gists_url":"https://api.github.com/users/SOVALINUX/gists{/gist_id}","starred_url":"https://api.github.com/users/SOVALINUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SOVALINUX/subscriptions","organizations_url":"https://api.github.com/users/SOVALINUX/orgs","repos_url":"https://api.github.com/users/SOVALINUX/repos","events_url":"https://api.github.com/users/SOVALINUX/events{/privacy}","received_events_url":"https://api.github.com/users/SOVALINUX/received_events","type":"User","site_admin":false},"repo":{"id":41513280,"name":"gocd-build-github-pull-requests","full_name":"SOVALINUX/gocd-build-github-pull-requests","owner":{"login":"SOVALINUX","id":1522630,"avatar_url":"https://avatars.githubusercontent.com/u/1522630?v=3","gravatar_id":"","url":"https://api.github.com/users/SOVALINUX","html_url":"https://github.com/SOVALINUX","followers_url":"https://api.github.com/users/SOVALINUX/followers","following_url":"https://api.github.com/users/SOVALINUX/following{/other_user}","gists_url":"https://api.github.com/users/SOVALINUX/gists{/gist_id}","starred_url":"https://api.github.com/users/SOVALINUX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SOVALINUX/subscriptions","organizations_url":"https://api.github.com/users/SOVALINUX/orgs","repos_url":"https://api.github.com/users/SOVALINUX/repos","events_url":"https://api.github.com/users/SOVALINUX/events{/privacy}","received_events_url":"https://api.github.com/users/SOVALINUX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SOVALINUX/gocd-build-github-pull-requests","description":"GoCD plugin to build PRs for a Github repo","fork":true,"url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests","forks_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/forks","keys_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/teams","hooks_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/hooks","issue_events_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/issues/events{/number}","events_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/events","assignees_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/assignees{/user}","branches_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/branches{/branch}","tags_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/tags","blobs_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/git/refs{/sha}","trees_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/statuses/{sha}","languages_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/languages","stargazers_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/stargazers","contributors_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/contributors","subscribers_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/subscribers","subscription_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/subscription","commits_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/commits{/sha}","git_commits_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/git/commits{/sha}","comments_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/comments{/number}","issue_comment_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/issues/comments{/number}","contents_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/contents/{+path}","compare_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/merges","archive_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/downloads","issues_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/issues{/number}","pulls_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/pulls{/number}","milestones_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/milestones{/number}","notifications_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/labels{/name}","releases_url":"https://api.github.com/repos/SOVALINUX/gocd-build-github-pull-requests/releases{/id}","created_at":"2015-08-27T21:53:14Z","updated_at":"2015-08-27T21:53:14Z","pushed_at":"2015-08-27T23:12:28Z","git_url":"git://github.com/SOVALINUX/gocd-build-github-pull-requests.git","ssh_url":"git@github.com:SOVALINUX/gocd-build-github-pull-requests.git","clone_url":"https://github.com/SOVALINUX/gocd-build-github-pull-requests.git","svn_url":"https://github.com/SOVALINUX/gocd-build-github-pull-requests","homepage":"","size":1434,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ashwanthkumar:master","ref":"master","sha":"f4a225821d74c16ad6706ec3d8189f199740a4b6","user":{"login":"ashwanthkumar","id":600279,"avatar_url":"https://avatars.githubusercontent.com/u/600279?v=3","gravatar_id":"","url":"https://api.github.com/users/ashwanthkumar","html_url":"https://github.com/ashwanthkumar","followers_url":"https://api.github.com/users/ashwanthkumar/followers","following_url":"https://api.github.com/users/ashwanthkumar/following{/other_user}","gists_url":"https://api.github.com/users/ashwanthkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwanthkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwanthkumar/subscriptions","organizations_url":"https://api.github.com/users/ashwanthkumar/orgs","repos_url":"https://api.github.com/users/ashwanthkumar/repos","events_url":"https://api.github.com/users/ashwanthkumar/events{/privacy}","received_events_url":"https://api.github.com/users/ashwanthkumar/received_events","type":"User","site_admin":false},"repo":{"id":30310769,"name":"gocd-build-github-pull-requests","full_name":"ashwanthkumar/gocd-build-github-pull-requests","owner":{"login":"ashwanthkumar","id":600279,"avatar_url":"https://avatars.githubusercontent.com/u/600279?v=3","gravatar_id":"","url":"https://api.github.com/users/ashwanthkumar","html_url":"https://github.com/ashwanthkumar","followers_url":"https://api.github.com/users/ashwanthkumar/followers","following_url":"https://api.github.com/users/ashwanthkumar/following{/other_user}","gists_url":"https://api.github.com/users/ashwanthkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/ashwanthkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashwanthkumar/subscriptions","organizations_url":"https://api.github.com/users/ashwanthkumar/orgs","repos_url":"https://api.github.com/users/ashwanthkumar/repos","events_url":"https://api.github.com/users/ashwanthkumar/events{/privacy}","received_events_url":"https://api.github.com/users/ashwanthkumar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests","description":"GoCD plugin to build PRs for a Github repo","fork":false,"url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests","forks_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/forks","keys_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/teams","hooks_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/hooks","issue_events_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/events{/number}","events_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/events","assignees_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/assignees{/user}","branches_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/branches{/branch}","tags_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/tags","blobs_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/statuses/{sha}","languages_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/languages","stargazers_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/stargazers","contributors_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/contributors","subscribers_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/subscribers","subscription_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/subscription","commits_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/contents/{+path}","compare_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/merges","archive_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/downloads","issues_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues{/number}","pulls_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls{/number}","milestones_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/milestones{/number}","notifications_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/labels{/name}","releases_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/releases{/id}","created_at":"2015-02-04T17:13:44Z","updated_at":"2015-09-03T15:45:14Z","pushed_at":"2015-09-04T05:47:16Z","git_url":"git://github.com/ashwanthkumar/gocd-build-github-pull-requests.git","ssh_url":"git@github.com:ashwanthkumar/gocd-build-github-pull-requests.git","clone_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests.git","svn_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests","homepage":"","size":1662,"stargazers_count":19,"watchers_count":19,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/50"},"html":{"href":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/pull/50"},"issue":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/50"},"comments":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/statuses/9870779db5174160fd0e245031fc92039adec6df"}}}}