{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments/40255694","id":40255694,"diff_hunk":"@@ -65,7 +65,7 @@ namespace :pl do\n           if Pkg::Util::File.empty_dir?(path_to_repo)\n             warn \"Skipping #{name_of_archive} because it (#{path_to_repo}) has no files\"\n           else\n-            Pkg::Util::Execution.ex(\"#{tar} -czf #{File.join(\"repos\", \"#{name_of_archive}.tar.gz\")} #{path_to_repo}\")\n+            Pkg::Util::Execution.ex(\"#{tar} --owner=0 --group=0 --create --gzip --file #{File.join(\"repos\", \"#{name_of_archive}.tar.gz\")} #{path_to_repo}\")","path":"tasks/nightly_repos.rake","position":5,"original_position":5,"commit_id":"fdf48afefe5a141b365a9ac818ea23ccd3b94f33","original_commit_id":"fdf48afefe5a141b365a9ac818ea23ccd3b94f33","user":{"login":"shrug","id":127475,"avatar_url":"https://avatars.githubusercontent.com/u/127475?v=3","gravatar_id":"","url":"https://api.github.com/users/shrug","html_url":"https://github.com/shrug","followers_url":"https://api.github.com/users/shrug/followers","following_url":"https://api.github.com/users/shrug/following{/other_user}","gists_url":"https://api.github.com/users/shrug/gists{/gist_id}","starred_url":"https://api.github.com/users/shrug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrug/subscriptions","organizations_url":"https://api.github.com/users/shrug/orgs","repos_url":"https://api.github.com/users/shrug/repos","events_url":"https://api.github.com/users/shrug/events{/privacy}","received_events_url":"https://api.github.com/users/shrug/received_events","type":"User","site_admin":false},"body":"My bad, this is not a general tar task, should be fine","created_at":"2015-09-23T20:47:46Z","updated_at":"2015-09-23T20:47:46Z","html_url":"https://github.com/puppetlabs/packaging/pull/440#discussion_r40255694","pull_request_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/440","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments/40255694"},"html":{"href":"https://github.com/puppetlabs/packaging/pull/440#discussion_r40255694"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/440"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/packaging/pulls/440","id":45829068,"html_url":"https://github.com/puppetlabs/packaging/pull/440","diff_url":"https://github.com/puppetlabs/packaging/pull/440.diff","patch_url":"https://github.com/puppetlabs/packaging/pull/440.patch","issue_url":"https://api.github.com/repos/puppetlabs/packaging/issues/440","number":440,"state":"open","locked":false,"title":"(RE-5573) Update tar creation to set group and owner to root ","user":{"login":"haus","id":98408,"avatar_url":"https://avatars.githubusercontent.com/u/98408?v=3","gravatar_id":"","url":"https://api.github.com/users/haus","html_url":"https://github.com/haus","followers_url":"https://api.github.com/users/haus/followers","following_url":"https://api.github.com/users/haus/following{/other_user}","gists_url":"https://api.github.com/users/haus/gists{/gist_id}","starred_url":"https://api.github.com/users/haus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haus/subscriptions","organizations_url":"https://api.github.com/users/haus/orgs","repos_url":"https://api.github.com/users/haus/repos","events_url":"https://api.github.com/users/haus/events{/privacy}","received_events_url":"https://api.github.com/users/haus/received_events","type":"User","site_admin":false},"body":"Previously the tar command used to pack up repos did not specify owner\r\nor group, which meant that it was set to the user running the task,\r\nwhich is generally jenkins. This user/group won't always exist on the\r\nsystem that is fetching the tarballs, so this commit updates the tar\r\ninvocation to also pass --owner=0 --group=0 to ensure that it is set to\r\nroot or root's equivalent when packing.","created_at":"2015-09-23T20:45:06Z","updated_at":"2015-09-23T20:47:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d24f2fff19c861aabf71aa4bf36d726de2ad34de","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/440/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/440/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/packaging/issues/440/comments","statuses_url":"https://api.github.com/repos/puppetlabs/packaging/statuses/fdf48afefe5a141b365a9ac818ea23ccd3b94f33","head":{"label":"haus:ticket/master/re-5573-update-perms-on-tarballs","ref":"ticket/master/re-5573-update-perms-on-tarballs","sha":"fdf48afefe5a141b365a9ac818ea23ccd3b94f33","user":{"login":"haus","id":98408,"avatar_url":"https://avatars.githubusercontent.com/u/98408?v=3","gravatar_id":"","url":"https://api.github.com/users/haus","html_url":"https://github.com/haus","followers_url":"https://api.github.com/users/haus/followers","following_url":"https://api.github.com/users/haus/following{/other_user}","gists_url":"https://api.github.com/users/haus/gists{/gist_id}","starred_url":"https://api.github.com/users/haus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haus/subscriptions","organizations_url":"https://api.github.com/users/haus/orgs","repos_url":"https://api.github.com/users/haus/repos","events_url":"https://api.github.com/users/haus/events{/privacy}","received_events_url":"https://api.github.com/users/haus/received_events","type":"User","site_admin":false},"repo":{"id":5970368,"name":"packaging","full_name":"haus/packaging","owner":{"login":"haus","id":98408,"avatar_url":"https://avatars.githubusercontent.com/u/98408?v=3","gravatar_id":"","url":"https://api.github.com/users/haus","html_url":"https://github.com/haus","followers_url":"https://api.github.com/users/haus/followers","following_url":"https://api.github.com/users/haus/following{/other_user}","gists_url":"https://api.github.com/users/haus/gists{/gist_id}","starred_url":"https://api.github.com/users/haus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haus/subscriptions","organizations_url":"https://api.github.com/users/haus/orgs","repos_url":"https://api.github.com/users/haus/repos","events_url":"https://api.github.com/users/haus/events{/privacy}","received_events_url":"https://api.github.com/users/haus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haus/packaging","description":"","fork":true,"url":"https://api.github.com/repos/haus/packaging","forks_url":"https://api.github.com/repos/haus/packaging/forks","keys_url":"https://api.github.com/repos/haus/packaging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haus/packaging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haus/packaging/teams","hooks_url":"https://api.github.com/repos/haus/packaging/hooks","issue_events_url":"https://api.github.com/repos/haus/packaging/issues/events{/number}","events_url":"https://api.github.com/repos/haus/packaging/events","assignees_url":"https://api.github.com/repos/haus/packaging/assignees{/user}","branches_url":"https://api.github.com/repos/haus/packaging/branches{/branch}","tags_url":"https://api.github.com/repos/haus/packaging/tags","blobs_url":"https://api.github.com/repos/haus/packaging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haus/packaging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haus/packaging/git/refs{/sha}","trees_url":"https://api.github.com/repos/haus/packaging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haus/packaging/statuses/{sha}","languages_url":"https://api.github.com/repos/haus/packaging/languages","stargazers_url":"https://api.github.com/repos/haus/packaging/stargazers","contributors_url":"https://api.github.com/repos/haus/packaging/contributors","subscribers_url":"https://api.github.com/repos/haus/packaging/subscribers","subscription_url":"https://api.github.com/repos/haus/packaging/subscription","commits_url":"https://api.github.com/repos/haus/packaging/commits{/sha}","git_commits_url":"https://api.github.com/repos/haus/packaging/git/commits{/sha}","comments_url":"https://api.github.com/repos/haus/packaging/comments{/number}","issue_comment_url":"https://api.github.com/repos/haus/packaging/issues/comments{/number}","contents_url":"https://api.github.com/repos/haus/packaging/contents/{+path}","compare_url":"https://api.github.com/repos/haus/packaging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haus/packaging/merges","archive_url":"https://api.github.com/repos/haus/packaging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haus/packaging/downloads","issues_url":"https://api.github.com/repos/haus/packaging/issues{/number}","pulls_url":"https://api.github.com/repos/haus/packaging/pulls{/number}","milestones_url":"https://api.github.com/repos/haus/packaging/milestones{/number}","notifications_url":"https://api.github.com/repos/haus/packaging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haus/packaging/labels{/name}","releases_url":"https://api.github.com/repos/haus/packaging/releases{/id}","created_at":"2012-09-26T18:37:04Z","updated_at":"2015-01-07T22:32:53Z","pushed_at":"2015-09-23T20:44:51Z","git_url":"git://github.com/haus/packaging.git","ssh_url":"git@github.com:haus/packaging.git","clone_url":"https://github.com/haus/packaging.git","svn_url":"https://github.com/haus/packaging","homepage":null,"size":2691,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"puppetlabs:master","ref":"master","sha":"0ff4f053a2e3205c61057539d8b9ad1ed64995b1","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":5209001,"name":"packaging","full_name":"puppetlabs/packaging","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/packaging","description":"","fork":false,"url":"https://api.github.com/repos/puppetlabs/packaging","forks_url":"https://api.github.com/repos/puppetlabs/packaging/forks","keys_url":"https://api.github.com/repos/puppetlabs/packaging/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/packaging/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/packaging/teams","hooks_url":"https://api.github.com/repos/puppetlabs/packaging/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/packaging/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/packaging/events","assignees_url":"https://api.github.com/repos/puppetlabs/packaging/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/packaging/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/packaging/tags","blobs_url":"https://api.github.com/repos/puppetlabs/packaging/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/packaging/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/packaging/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/packaging/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/packaging/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/packaging/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/packaging/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/packaging/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/packaging/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/packaging/subscription","commits_url":"https://api.github.com/repos/puppetlabs/packaging/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/packaging/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/packaging/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/packaging/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/packaging/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/packaging/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/packaging/merges","archive_url":"https://api.github.com/repos/puppetlabs/packaging/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/packaging/downloads","issues_url":"https://api.github.com/repos/puppetlabs/packaging/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/packaging/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/packaging/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/packaging/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/packaging/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/packaging/releases{/id}","created_at":"2012-07-27T20:18:19Z","updated_at":"2015-05-18T22:33:47Z","pushed_at":"2015-09-23T20:45:07Z","git_url":"git://github.com/puppetlabs/packaging.git","ssh_url":"git@github.com:puppetlabs/packaging.git","clone_url":"https://github.com/puppetlabs/packaging.git","svn_url":"https://github.com/puppetlabs/packaging","homepage":null,"size":3765,"stargazers_count":27,"watchers_count":27,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":2,"forks":44,"open_issues":2,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/440"},"html":{"href":"https://github.com/puppetlabs/packaging/pull/440"},"issue":{"href":"https://api.github.com/repos/puppetlabs/packaging/issues/440"},"comments":{"href":"https://api.github.com/repos/puppetlabs/packaging/issues/440/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/440/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/packaging/pulls/440/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/packaging/statuses/fdf48afefe5a141b365a9ac818ea23ccd3b94f33"}}}}