{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/comments/197454276","pull_request_review_id":131205011,"id":197454276,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzQ1NDI3Ng==","diff_hunk":"@@ -0,0 +1,40 @@\n+def setupAnsibleEnvironment(body) {\n+\n+    def config = [:]\n+    body = body ?: [:]\n+\n+    body.resolveStrategy = Closure.DELEGATE_FIRST\n+    body.delegate = config\n+    body()\n+\n+    def git_remote = config.git_remote ?: 'SatelliteQE'\n+    def git_repo = config.git_repo ?: 'robottelo-ci'\n+    def git_branch = config.git_branch ?: 'master'\n+\n+    git url: \"https://github.com/${git_remote}/${git_repo}\", branch: git_branch\n+\n+}\n+\n+def runPlaybook(body) {","path":"qe/workflows/lib/runPlaybook.groovy","position":18,"original_position":18,"commit_id":"985dcd875a065fa076ea3d5372e21fbbefc0683c","original_commit_id":"985dcd875a065fa076ea3d5372e21fbbefc0683c","user":{"login":"ehelms","id":293363,"node_id":"MDQ6VXNlcjI5MzM2Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/293363?v=4","gravatar_id":"","url":"https://api.github.com/users/ehelms","html_url":"https://github.com/ehelms","followers_url":"https://api.github.com/users/ehelms/followers","following_url":"https://api.github.com/users/ehelms/following{/other_user}","gists_url":"https://api.github.com/users/ehelms/gists{/gist_id}","starred_url":"https://api.github.com/users/ehelms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehelms/subscriptions","organizations_url":"https://api.github.com/users/ehelms/orgs","repos_url":"https://api.github.com/users/ehelms/repos","events_url":"https://api.github.com/users/ehelms/events{/privacy}","received_events_url":"https://api.github.com/users/ehelms/received_events","type":"User","site_admin":false},"body":"If you are going to create your own function, then I would recommend not doing a closure from the get go. As time has gone by we've learned more and more and moved away from them. This is an example of a cleaner way to do this without incurring the potential weirdness that closures can provide:\r\n\r\nhttps://github.com/theforeman/foreman-infra/blob/master/puppet/modules/jenkins_job_builder/files/centos.org/pipelines/lib/ansible.groovy","created_at":"2018-06-22T14:00:35Z","updated_at":"2018-06-22T14:00:35Z","html_url":"https://github.com/SatelliteQE/robottelo-ci/pull/1207#discussion_r197454276","pull_request_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/1207","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/comments/197454276"},"html":{"href":"https://github.com/SatelliteQE/robottelo-ci/pull/1207#discussion_r197454276"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/1207"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/1207","id":196450448,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NDUwNDQ4","html_url":"https://github.com/SatelliteQE/robottelo-ci/pull/1207","diff_url":"https://github.com/SatelliteQE/robottelo-ci/pull/1207.diff","patch_url":"https://github.com/SatelliteQE/robottelo-ci/pull/1207.patch","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/1207","number":1207,"state":"open","locked":false,"title":"[Do Not Merge] Convert the sat6-mass-registration job to use pipelines","user":{"login":"kbidarkar","id":373096,"node_id":"MDQ6VXNlcjM3MzA5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/373096?v=4","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Kedar Bidarkar <kbidarka@redhat.com>","created_at":"2018-06-21T13:22:40Z","updated_at":"2018-06-22T14:00:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"573b74ad15a87123ab08cc362755f35159e829f3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"JacobCallahan","id":6618303,"node_id":"MDQ6VXNlcjY2MTgzMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/6618303?v=4","gravatar_id":"","url":"https://api.github.com/users/JacobCallahan","html_url":"https://github.com/JacobCallahan","followers_url":"https://api.github.com/users/JacobCallahan/followers","following_url":"https://api.github.com/users/JacobCallahan/following{/other_user}","gists_url":"https://api.github.com/users/JacobCallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobCallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobCallahan/subscriptions","organizations_url":"https://api.github.com/users/JacobCallahan/orgs","repos_url":"https://api.github.com/users/JacobCallahan/repos","events_url":"https://api.github.com/users/JacobCallahan/events{/privacy}","received_events_url":"https://api.github.com/users/JacobCallahan/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":517129774,"node_id":"MDU6TGFiZWw1MTcxMjk3NzQ=","url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/labels/DO%20NOT%20MERGE","name":"DO NOT MERGE","color":"ffcc00","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/1207/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/1207/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/1207/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/statuses/985dcd875a065fa076ea3d5372e21fbbefc0683c","head":{"label":"kbidarkar:pipeline-qe","ref":"pipeline-qe","sha":"985dcd875a065fa076ea3d5372e21fbbefc0683c","user":{"login":"kbidarkar","id":373096,"node_id":"MDQ6VXNlcjM3MzA5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/373096?v=4","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"repo":{"id":41503613,"node_id":"MDEwOlJlcG9zaXRvcnk0MTUwMzYxMw==","name":"robottelo-ci","full_name":"kbidarkar/robottelo-ci","owner":{"login":"kbidarkar","id":373096,"node_id":"MDQ6VXNlcjM3MzA5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/373096?v=4","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbidarkar/robottelo-ci","description":"Jenkins jobs configuration files to be used to run Robottelo against Satellite 6 and SAM.","fork":true,"url":"https://api.github.com/repos/kbidarkar/robottelo-ci","forks_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/forks","keys_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/teams","hooks_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/hooks","issue_events_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/issues/events{/number}","events_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/events","assignees_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/assignees{/user}","branches_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/branches{/branch}","tags_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/tags","blobs_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/statuses/{sha}","languages_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/languages","stargazers_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/stargazers","contributors_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/contributors","subscribers_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/subscribers","subscription_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/subscription","commits_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/contents/{+path}","compare_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/merges","archive_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/downloads","issues_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/issues{/number}","pulls_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/pulls{/number}","milestones_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/milestones{/number}","notifications_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/labels{/name}","releases_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/releases{/id}","deployments_url":"https://api.github.com/repos/kbidarkar/robottelo-ci/deployments","created_at":"2015-08-27T18:18:38Z","updated_at":"2016-06-28T14:33:14Z","pushed_at":"2018-06-22T09:30:55Z","git_url":"git://github.com/kbidarkar/robottelo-ci.git","ssh_url":"git@github.com:kbidarkar/robottelo-ci.git","clone_url":"https://github.com/kbidarkar/robottelo-ci.git","svn_url":"https://github.com/kbidarkar/robottelo-ci","homepage":"","size":1443,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SatelliteQE:master","ref":"master","sha":"f2e101c12bdc789e64da4dfaea2968d0d634d577","user":{"login":"SatelliteQE","id":8754276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3NTQyNzY=","avatar_url":"https://avatars3.githubusercontent.com/u/8754276?v=4","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"repo":{"id":27786159,"node_id":"MDEwOlJlcG9zaXRvcnkyNzc4NjE1OQ==","name":"robottelo-ci","full_name":"SatelliteQE/robottelo-ci","owner":{"login":"SatelliteQE","id":8754276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg3NTQyNzY=","avatar_url":"https://avatars3.githubusercontent.com/u/8754276?v=4","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SatelliteQE/robottelo-ci","description":"Jenkins jobs configuration files to be used to run Robottelo against Satellite 6.","fork":false,"url":"https://api.github.com/repos/SatelliteQE/robottelo-ci","forks_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/forks","keys_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/teams","hooks_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/hooks","issue_events_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/events{/number}","events_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/events","assignees_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/assignees{/user}","branches_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/branches{/branch}","tags_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/tags","blobs_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/statuses/{sha}","languages_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/languages","stargazers_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/stargazers","contributors_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/contributors","subscribers_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/subscribers","subscription_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/subscription","commits_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/contents/{+path}","compare_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/merges","archive_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/downloads","issues_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues{/number}","pulls_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls{/number}","milestones_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/milestones{/number}","notifications_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/labels{/name}","releases_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/releases{/id}","deployments_url":"https://api.github.com/repos/SatelliteQE/robottelo-ci/deployments","created_at":"2014-12-09T20:43:44Z","updated_at":"2018-06-22T09:32:10Z","pushed_at":"2018-06-22T09:32:08Z","git_url":"git://github.com/SatelliteQE/robottelo-ci.git","ssh_url":"git@github.com:SatelliteQE/robottelo-ci.git","clone_url":"https://github.com/SatelliteQE/robottelo-ci.git","svn_url":"https://github.com/SatelliteQE/robottelo-ci","homepage":"","size":1418,"stargazers_count":11,"watchers_count":11,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":30,"open_issues":34,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/1207"},"html":{"href":"https://github.com/SatelliteQE/robottelo-ci/pull/1207"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/1207"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/issues/1207/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/1207/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/pulls/1207/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/robottelo-ci/statuses/985dcd875a065fa076ea3d5372e21fbbefc0683c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ehelms"}}