{"action":"created","comment":{"url":"https://api.github.com/repos/resin-io/resin-base/pulls/comments/57563090","id":57563090,"diff_hunk":"@@ -3,11 +3,16 @@ set -e\n \n VERSION=$(git rev-parse --short HEAD)\n ESCAPED_BRANCH_NAME=$(echo $sourceBranch | sed 's/[^a-z0-9A-Z_.-]/-/g')\n+IGNORE_CACHE=0\n \n-# Try pulling the old build first for caching purposes.\n-docker pull resin/${JOB_NAME}:${ESCAPED_BRANCH_NAME} || docker pull resin/${JOB_NAME}:master || true\n+if [ $IGNORE_CACHE -eq 1 ]; then\n+\tdocker build --no-cache --tag resin/${JOB_NAME}:${VERSION} .","path":"automation/jenkins-build.sh","position":9,"original_position":9,"commit_id":"c84da5a1f7fcbd65b7813b73fe5708fe8c681ccb","original_commit_id":"c84da5a1f7fcbd65b7813b73fe5708fe8c681ccb","user":{"login":"Page-","id":360115,"avatar_url":"https://avatars.githubusercontent.com/u/360115?v=3","gravatar_id":"","url":"https://api.github.com/users/Page-","html_url":"https://github.com/Page-","followers_url":"https://api.github.com/users/Page-/followers","following_url":"https://api.github.com/users/Page-/following{/other_user}","gists_url":"https://api.github.com/users/Page-/gists{/gist_id}","starred_url":"https://api.github.com/users/Page-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Page-/subscriptions","organizations_url":"https://api.github.com/users/Page-/orgs","repos_url":"https://api.github.com/users/Page-/repos","events_url":"https://api.github.com/users/Page-/events{/privacy}","received_events_url":"https://api.github.com/users/Page-/received_events","type":"User","site_admin":false},"body":"It'd be good to add `--pull` to the build as well, to guarantee using the latest version of the parent image (debian).  It probably makes sense to add even when using the cache as well","created_at":"2016-03-28T11:17:49Z","updated_at":"2016-03-28T11:17:49Z","html_url":"https://github.com/resin-io/resin-base/pull/8#discussion_r57563090","pull_request_url":"https://api.github.com/repos/resin-io/resin-base/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/resin-io/resin-base/pulls/comments/57563090"},"html":{"href":"https://github.com/resin-io/resin-base/pull/8#discussion_r57563090"},"pull_request":{"href":"https://api.github.com/repos/resin-io/resin-base/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/resin-io/resin-base/pulls/8","id":64293100,"html_url":"https://github.com/resin-io/resin-base/pull/8","diff_url":"https://github.com/resin-io/resin-base/pull/8.diff","patch_url":"https://github.com/resin-io/resin-base/pull/8.patch","issue_url":"https://api.github.com/repos/resin-io/resin-base/issues/8","number":8,"state":"open","locked":false,"title":"automation: add option to build without using cache","user":{"login":"petrosagg","id":939420,"avatar_url":"https://avatars.githubusercontent.com/u/939420?v=3","gravatar_id":"","url":"https://api.github.com/users/petrosagg","html_url":"https://github.com/petrosagg","followers_url":"https://api.github.com/users/petrosagg/followers","following_url":"https://api.github.com/users/petrosagg/following{/other_user}","gists_url":"https://api.github.com/users/petrosagg/gists{/gist_id}","starred_url":"https://api.github.com/users/petrosagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrosagg/subscriptions","organizations_url":"https://api.github.com/users/petrosagg/orgs","repos_url":"https://api.github.com/users/petrosagg/repos","events_url":"https://api.github.com/users/petrosagg/events{/privacy}","received_events_url":"https://api.github.com/users/petrosagg/received_events","type":"User","site_admin":false},"body":"This can be used to make sure we run the latest debian packages\r\n\r\nSigned-off-by: Petros Angelatos <petrosagg@gmail.com>","created_at":"2016-03-28T06:22:10Z","updated_at":"2016-03-28T11:17:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ade4659e03e3b1977d5dd0696d8df6ba4ae83a8a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/resin-io/resin-base/pulls/8/commits","review_comments_url":"https://api.github.com/repos/resin-io/resin-base/pulls/8/comments","review_comment_url":"https://api.github.com/repos/resin-io/resin-base/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-io/resin-base/issues/8/comments","statuses_url":"https://api.github.com/repos/resin-io/resin-base/statuses/c84da5a1f7fcbd65b7813b73fe5708fe8c681ccb","head":{"label":"resin-io:add-no-cache-option","ref":"add-no-cache-option","sha":"c84da5a1f7fcbd65b7813b73fe5708fe8c681ccb","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":49717200,"name":"resin-base","full_name":"resin-io/resin-base","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/resin-base","description":"","fork":false,"url":"https://api.github.com/repos/resin-io/resin-base","forks_url":"https://api.github.com/repos/resin-io/resin-base/forks","keys_url":"https://api.github.com/repos/resin-io/resin-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/resin-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/resin-base/teams","hooks_url":"https://api.github.com/repos/resin-io/resin-base/hooks","issue_events_url":"https://api.github.com/repos/resin-io/resin-base/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/resin-base/events","assignees_url":"https://api.github.com/repos/resin-io/resin-base/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/resin-base/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/resin-base/tags","blobs_url":"https://api.github.com/repos/resin-io/resin-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/resin-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/resin-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/resin-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/resin-base/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/resin-base/languages","stargazers_url":"https://api.github.com/repos/resin-io/resin-base/stargazers","contributors_url":"https://api.github.com/repos/resin-io/resin-base/contributors","subscribers_url":"https://api.github.com/repos/resin-io/resin-base/subscribers","subscription_url":"https://api.github.com/repos/resin-io/resin-base/subscription","commits_url":"https://api.github.com/repos/resin-io/resin-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/resin-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/resin-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/resin-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/resin-base/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/resin-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/resin-base/merges","archive_url":"https://api.github.com/repos/resin-io/resin-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/resin-base/downloads","issues_url":"https://api.github.com/repos/resin-io/resin-base/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/resin-base/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/resin-base/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/resin-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/resin-base/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/resin-base/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io/resin-base/deployments","created_at":"2016-01-15T12:20:37Z","updated_at":"2016-01-15T12:59:10Z","pushed_at":"2016-03-28T06:22:11Z","git_url":"git://github.com/resin-io/resin-base.git","ssh_url":"git@github.com:resin-io/resin-base.git","clone_url":"https://github.com/resin-io/resin-base.git","svn_url":"https://github.com/resin-io/resin-base","homepage":null,"size":13,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"resin-io:master","ref":"master","sha":"e143339393cd05f2acfbd3d5efbc9edf96708d27","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":49717200,"name":"resin-base","full_name":"resin-io/resin-base","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/resin-base","description":"","fork":false,"url":"https://api.github.com/repos/resin-io/resin-base","forks_url":"https://api.github.com/repos/resin-io/resin-base/forks","keys_url":"https://api.github.com/repos/resin-io/resin-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/resin-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/resin-base/teams","hooks_url":"https://api.github.com/repos/resin-io/resin-base/hooks","issue_events_url":"https://api.github.com/repos/resin-io/resin-base/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/resin-base/events","assignees_url":"https://api.github.com/repos/resin-io/resin-base/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/resin-base/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/resin-base/tags","blobs_url":"https://api.github.com/repos/resin-io/resin-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/resin-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/resin-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/resin-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/resin-base/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/resin-base/languages","stargazers_url":"https://api.github.com/repos/resin-io/resin-base/stargazers","contributors_url":"https://api.github.com/repos/resin-io/resin-base/contributors","subscribers_url":"https://api.github.com/repos/resin-io/resin-base/subscribers","subscription_url":"https://api.github.com/repos/resin-io/resin-base/subscription","commits_url":"https://api.github.com/repos/resin-io/resin-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/resin-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/resin-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/resin-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/resin-base/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/resin-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/resin-base/merges","archive_url":"https://api.github.com/repos/resin-io/resin-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/resin-base/downloads","issues_url":"https://api.github.com/repos/resin-io/resin-base/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/resin-base/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/resin-base/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/resin-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/resin-base/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/resin-base/releases{/id}","deployments_url":"https://api.github.com/repos/resin-io/resin-base/deployments","created_at":"2016-01-15T12:20:37Z","updated_at":"2016-01-15T12:59:10Z","pushed_at":"2016-03-28T06:22:11Z","git_url":"git://github.com/resin-io/resin-base.git","ssh_url":"git@github.com:resin-io/resin-base.git","clone_url":"https://github.com/resin-io/resin-base.git","svn_url":"https://github.com/resin-io/resin-base","homepage":null,"size":13,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-io/resin-base/pulls/8"},"html":{"href":"https://github.com/resin-io/resin-base/pull/8"},"issue":{"href":"https://api.github.com/repos/resin-io/resin-base/issues/8"},"comments":{"href":"https://api.github.com/repos/resin-io/resin-base/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-io/resin-base/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-io/resin-base/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-io/resin-base/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/resin-io/resin-base/statuses/c84da5a1f7fcbd65b7813b73fe5708fe8c681ccb"}}}}