{"action":"created","comment":{"url":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/comments/33826954","id":33826954,"diff_hunk":"@@ -60,7 +60,12 @@ func (c *Client) PushImage(repository string, stream bool) {\n \tauthConf := docker.AuthConfiguration{}\n \n \tif err := c.client.PushImage(pushOpts, authConf); err != nil {\n-\t\tpanic(err)\n+\t\tfmt.Fprintf(os.Stderr, \"PushImage error: %s\\n\", err.Error())\n+\t\ttime.Sleep(30)\n+\t\tif err = c.client.PushImage(pushOpts, authConf); err != nil {\n+\t\t\tdefer c.client.RemoveImage(repository)","path":"src/atlantis/builder/docker/client.go","position":8,"original_position":8,"commit_id":"0d30d6036a726764d45603484832df1608989101","original_commit_id":"0d30d6036a726764d45603484832df1608989101","user":{"login":"adevendra","id":12927353,"avatar_url":"https://avatars.githubusercontent.com/u/12927353?v=3","gravatar_id":"","url":"https://api.github.com/users/adevendra","html_url":"https://github.com/adevendra","followers_url":"https://api.github.com/users/adevendra/followers","following_url":"https://api.github.com/users/adevendra/following{/other_user}","gists_url":"https://api.github.com/users/adevendra/gists{/gist_id}","starred_url":"https://api.github.com/users/adevendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adevendra/subscriptions","organizations_url":"https://api.github.com/users/adevendra/orgs","repos_url":"https://api.github.com/users/adevendra/repos","events_url":"https://api.github.com/users/adevendra/events{/privacy}","received_events_url":"https://api.github.com/users/adevendra/received_events","type":"User","site_admin":false},"body":"strictly pedantic : defer does not make sense here","created_at":"2015-07-02T21:58:05Z","updated_at":"2015-07-02T21:58:05Z","html_url":"https://github.com/ooyala/atlantis-builder/pull/65#discussion_r33826954","pull_request_url":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/comments/33826954"},"html":{"href":"https://github.com/ooyala/atlantis-builder/pull/65#discussion_r33826954"},"pull_request":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/65","id":39127224,"html_url":"https://github.com/ooyala/atlantis-builder/pull/65","diff_url":"https://github.com/ooyala/atlantis-builder/pull/65.diff","patch_url":"https://github.com/ooyala/atlantis-builder/pull/65.patch","issue_url":"https://api.github.com/repos/ooyala/atlantis-builder/issues/65","number":65,"state":"open","locked":false,"title":"If pushImage fails, retry one more time","user":{"login":"taimai","id":9424939,"avatar_url":"https://avatars.githubusercontent.com/u/9424939?v=3","gravatar_id":"","url":"https://api.github.com/users/taimai","html_url":"https://github.com/taimai","followers_url":"https://api.github.com/users/taimai/followers","following_url":"https://api.github.com/users/taimai/following{/other_user}","gists_url":"https://api.github.com/users/taimai/gists{/gist_id}","starred_url":"https://api.github.com/users/taimai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taimai/subscriptions","organizations_url":"https://api.github.com/users/taimai/orgs","repos_url":"https://api.github.com/users/taimai/repos","events_url":"https://api.github.com/users/taimai/events{/privacy}","received_events_url":"https://api.github.com/users/taimai/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-02T21:21:37Z","updated_at":"2015-07-02T21:58:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6ae3c063249803eaa19d2ad87634fc237f3c098","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/65/commits","review_comments_url":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/65/comments","review_comment_url":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ooyala/atlantis-builder/issues/65/comments","statuses_url":"https://api.github.com/repos/ooyala/atlantis-builder/statuses/0d30d6036a726764d45603484832df1608989101","head":{"label":"ooyala:s3.fix","ref":"s3.fix","sha":"0d30d6036a726764d45603484832df1608989101","user":{"login":"ooyala","id":365274,"avatar_url":"https://avatars.githubusercontent.com/u/365274?v=3","gravatar_id":"","url":"https://api.github.com/users/ooyala","html_url":"https://github.com/ooyala","followers_url":"https://api.github.com/users/ooyala/followers","following_url":"https://api.github.com/users/ooyala/following{/other_user}","gists_url":"https://api.github.com/users/ooyala/gists{/gist_id}","starred_url":"https://api.github.com/users/ooyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooyala/subscriptions","organizations_url":"https://api.github.com/users/ooyala/orgs","repos_url":"https://api.github.com/users/ooyala/repos","events_url":"https://api.github.com/users/ooyala/events{/privacy}","received_events_url":"https://api.github.com/users/ooyala/received_events","type":"Organization","site_admin":false},"repo":{"id":14408570,"name":"atlantis-builder","full_name":"ooyala/atlantis-builder","owner":{"login":"ooyala","id":365274,"avatar_url":"https://avatars.githubusercontent.com/u/365274?v=3","gravatar_id":"","url":"https://api.github.com/users/ooyala","html_url":"https://github.com/ooyala","followers_url":"https://api.github.com/users/ooyala/followers","following_url":"https://api.github.com/users/ooyala/following{/other_user}","gists_url":"https://api.github.com/users/ooyala/gists{/gist_id}","starred_url":"https://api.github.com/users/ooyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooyala/subscriptions","organizations_url":"https://api.github.com/users/ooyala/orgs","repos_url":"https://api.github.com/users/ooyala/repos","events_url":"https://api.github.com/users/ooyala/events{/privacy}","received_events_url":"https://api.github.com/users/ooyala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ooyala/atlantis-builder","description":"Builder for Atlantis","fork":false,"url":"https://api.github.com/repos/ooyala/atlantis-builder","forks_url":"https://api.github.com/repos/ooyala/atlantis-builder/forks","keys_url":"https://api.github.com/repos/ooyala/atlantis-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ooyala/atlantis-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ooyala/atlantis-builder/teams","hooks_url":"https://api.github.com/repos/ooyala/atlantis-builder/hooks","issue_events_url":"https://api.github.com/repos/ooyala/atlantis-builder/issues/events{/number}","events_url":"https://api.github.com/repos/ooyala/atlantis-builder/events","assignees_url":"https://api.github.com/repos/ooyala/atlantis-builder/assignees{/user}","branches_url":"https://api.github.com/repos/ooyala/atlantis-builder/branches{/branch}","tags_url":"https://api.github.com/repos/ooyala/atlantis-builder/tags","blobs_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ooyala/atlantis-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/ooyala/atlantis-builder/languages","stargazers_url":"https://api.github.com/repos/ooyala/atlantis-builder/stargazers","contributors_url":"https://api.github.com/repos/ooyala/atlantis-builder/contributors","subscribers_url":"https://api.github.com/repos/ooyala/atlantis-builder/subscribers","subscription_url":"https://api.github.com/repos/ooyala/atlantis-builder/subscription","commits_url":"https://api.github.com/repos/ooyala/atlantis-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/ooyala/atlantis-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/ooyala/atlantis-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/ooyala/atlantis-builder/contents/{+path}","compare_url":"https://api.github.com/repos/ooyala/atlantis-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ooyala/atlantis-builder/merges","archive_url":"https://api.github.com/repos/ooyala/atlantis-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ooyala/atlantis-builder/downloads","issues_url":"https://api.github.com/repos/ooyala/atlantis-builder/issues{/number}","pulls_url":"https://api.github.com/repos/ooyala/atlantis-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/ooyala/atlantis-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/ooyala/atlantis-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ooyala/atlantis-builder/labels{/name}","releases_url":"https://api.github.com/repos/ooyala/atlantis-builder/releases{/id}","created_at":"2013-11-14T22:18:02Z","updated_at":"2015-03-16T16:46:53Z","pushed_at":"2015-07-02T21:21:38Z","git_url":"git://github.com/ooyala/atlantis-builder.git","ssh_url":"git@github.com:ooyala/atlantis-builder.git","clone_url":"https://github.com/ooyala/atlantis-builder.git","svn_url":"https://github.com/ooyala/atlantis-builder","homepage":null,"size":7680,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"ooyala:master","ref":"master","sha":"3186caf6d2145af0051a245f09ad634a33d09cae","user":{"login":"ooyala","id":365274,"avatar_url":"https://avatars.githubusercontent.com/u/365274?v=3","gravatar_id":"","url":"https://api.github.com/users/ooyala","html_url":"https://github.com/ooyala","followers_url":"https://api.github.com/users/ooyala/followers","following_url":"https://api.github.com/users/ooyala/following{/other_user}","gists_url":"https://api.github.com/users/ooyala/gists{/gist_id}","starred_url":"https://api.github.com/users/ooyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooyala/subscriptions","organizations_url":"https://api.github.com/users/ooyala/orgs","repos_url":"https://api.github.com/users/ooyala/repos","events_url":"https://api.github.com/users/ooyala/events{/privacy}","received_events_url":"https://api.github.com/users/ooyala/received_events","type":"Organization","site_admin":false},"repo":{"id":14408570,"name":"atlantis-builder","full_name":"ooyala/atlantis-builder","owner":{"login":"ooyala","id":365274,"avatar_url":"https://avatars.githubusercontent.com/u/365274?v=3","gravatar_id":"","url":"https://api.github.com/users/ooyala","html_url":"https://github.com/ooyala","followers_url":"https://api.github.com/users/ooyala/followers","following_url":"https://api.github.com/users/ooyala/following{/other_user}","gists_url":"https://api.github.com/users/ooyala/gists{/gist_id}","starred_url":"https://api.github.com/users/ooyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooyala/subscriptions","organizations_url":"https://api.github.com/users/ooyala/orgs","repos_url":"https://api.github.com/users/ooyala/repos","events_url":"https://api.github.com/users/ooyala/events{/privacy}","received_events_url":"https://api.github.com/users/ooyala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ooyala/atlantis-builder","description":"Builder for Atlantis","fork":false,"url":"https://api.github.com/repos/ooyala/atlantis-builder","forks_url":"https://api.github.com/repos/ooyala/atlantis-builder/forks","keys_url":"https://api.github.com/repos/ooyala/atlantis-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ooyala/atlantis-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ooyala/atlantis-builder/teams","hooks_url":"https://api.github.com/repos/ooyala/atlantis-builder/hooks","issue_events_url":"https://api.github.com/repos/ooyala/atlantis-builder/issues/events{/number}","events_url":"https://api.github.com/repos/ooyala/atlantis-builder/events","assignees_url":"https://api.github.com/repos/ooyala/atlantis-builder/assignees{/user}","branches_url":"https://api.github.com/repos/ooyala/atlantis-builder/branches{/branch}","tags_url":"https://api.github.com/repos/ooyala/atlantis-builder/tags","blobs_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ooyala/atlantis-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/ooyala/atlantis-builder/languages","stargazers_url":"https://api.github.com/repos/ooyala/atlantis-builder/stargazers","contributors_url":"https://api.github.com/repos/ooyala/atlantis-builder/contributors","subscribers_url":"https://api.github.com/repos/ooyala/atlantis-builder/subscribers","subscription_url":"https://api.github.com/repos/ooyala/atlantis-builder/subscription","commits_url":"https://api.github.com/repos/ooyala/atlantis-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/ooyala/atlantis-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/ooyala/atlantis-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/ooyala/atlantis-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/ooyala/atlantis-builder/contents/{+path}","compare_url":"https://api.github.com/repos/ooyala/atlantis-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ooyala/atlantis-builder/merges","archive_url":"https://api.github.com/repos/ooyala/atlantis-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ooyala/atlantis-builder/downloads","issues_url":"https://api.github.com/repos/ooyala/atlantis-builder/issues{/number}","pulls_url":"https://api.github.com/repos/ooyala/atlantis-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/ooyala/atlantis-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/ooyala/atlantis-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ooyala/atlantis-builder/labels{/name}","releases_url":"https://api.github.com/repos/ooyala/atlantis-builder/releases{/id}","created_at":"2013-11-14T22:18:02Z","updated_at":"2015-03-16T16:46:53Z","pushed_at":"2015-07-02T21:21:38Z","git_url":"git://github.com/ooyala/atlantis-builder.git","ssh_url":"git@github.com:ooyala/atlantis-builder.git","clone_url":"https://github.com/ooyala/atlantis-builder.git","svn_url":"https://github.com/ooyala/atlantis-builder","homepage":null,"size":7680,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/65"},"html":{"href":"https://github.com/ooyala/atlantis-builder/pull/65"},"issue":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/issues/65"},"comments":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/ooyala/atlantis-builder/statuses/0d30d6036a726764d45603484832df1608989101"}}}}