{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/openj9/pulls/comments/175782932","pull_request_review_id":105362278,"id":175782932,"diff_hunk":"@@ -47,6 +47,37 @@ def parse_variables_file(){\n     VARIABLES = readYaml file: \"${VARIABLE_FILE}\"\n }\n \n+/*\n+* Fetch the user provided variable file.\n+*/\n+def get_variables_file() {\n+    if (params.VARIABLE_FILE && params.VENDOR_REPO && params.VENDOR_BRANCH) {\n+        stage('Get Variables File') {\n+            timestamps {\n+                if (params.VENDOR_CREDENTIALS_ID) {\n+                    sshagent(credentials:[\"${params.VENDOR_CREDENTIALS_ID}\"]) {\n+                        checkout_file()\n+                    }\n+                } else {\n+                    checkout_file()\n+                }\n+             }\n+        }\n+    }\n+\n+    return params.VARIABLE_FILE\n+}\n+\n+/*\n+* Check out the user variable file.\n+*/\n+def checkout_file() {\n+    sh \"git config remote.vendor.url ${params.VENDOR_REPO}\"\n+    sh \"git config remote.vendor.fetch +refs/heads/*:refs/remotes/vendor/*\"","path":"buildenv/jenkins/common/variables-functions","position":41,"original_position":41,"commit_id":"6a12612d420fdb61b64bbaacd7e52a0029bb407e","original_commit_id":"6a12612d420fdb61b64bbaacd7e52a0029bb407e","user":{"login":"AdamBrousseau","id":6430052,"avatar_url":"https://avatars0.githubusercontent.com/u/6430052?v=4","gravatar_id":"","url":"https://api.github.com/users/AdamBrousseau","html_url":"https://github.com/AdamBrousseau","followers_url":"https://api.github.com/users/AdamBrousseau/followers","following_url":"https://api.github.com/users/AdamBrousseau/following{/other_user}","gists_url":"https://api.github.com/users/AdamBrousseau/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamBrousseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamBrousseau/subscriptions","organizations_url":"https://api.github.com/users/AdamBrousseau/orgs","repos_url":"https://api.github.com/users/AdamBrousseau/repos","events_url":"https://api.github.com/users/AdamBrousseau/events{/privacy}","received_events_url":"https://api.github.com/users/AdamBrousseau/received_events","type":"User","site_admin":false},"body":"Is this not the default refspec? You could remove this line or you could change it to only fetch the `VENDOR_BRANCH`\r\ni.e. ```+refs/heads/${params.VENDOR_BRANCH}:refs/remotes/vendor/${params.VENDOR_BRANCH}```","created_at":"2018-03-20T14:21:53Z","updated_at":"2018-03-20T14:22:14Z","html_url":"https://github.com/eclipse/openj9/pull/1480#discussion_r175782932","pull_request_url":"https://api.github.com/repos/eclipse/openj9/pulls/1480","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/eclipse/openj9/pulls/comments/175782932"},"html":{"href":"https://github.com/eclipse/openj9/pull/1480#discussion_r175782932"},"pull_request":{"href":"https://api.github.com/repos/eclipse/openj9/pulls/1480"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/openj9/pulls/1480","id":176026082,"html_url":"https://github.com/eclipse/openj9/pull/1480","diff_url":"https://github.com/eclipse/openj9/pull/1480.diff","patch_url":"https://github.com/eclipse/openj9/pull/1480.patch","issue_url":"https://api.github.com/repos/eclipse/openj9/issues/1480","number":1480,"state":"open","locked":false,"title":"Add support for custom configuration from a Git repository","user":{"login":"vsebe","id":28537856,"avatar_url":"https://avatars2.githubusercontent.com/u/28537856?v=4","gravatar_id":"","url":"https://api.github.com/users/vsebe","html_url":"https://github.com/vsebe","followers_url":"https://api.github.com/users/vsebe/followers","following_url":"https://api.github.com/users/vsebe/following{/other_user}","gists_url":"https://api.github.com/users/vsebe/gists{/gist_id}","starred_url":"https://api.github.com/users/vsebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsebe/subscriptions","organizations_url":"https://api.github.com/users/vsebe/orgs","repos_url":"https://api.github.com/users/vsebe/repos","events_url":"https://api.github.com/users/vsebe/events{/privacy}","received_events_url":"https://api.github.com/users/vsebe/received_events","type":"User","site_admin":false},"body":"Add support for user provided variable file from a vendor Git\r\nrepository:\r\n- add vendor Git repository, branch and credentials parameters to the\r\nbuild and test jobs\r\n- check out the variable file from the vendor repository when vendor\r\nrepository is provided\r\n\r\n[ci skip]\r\n\r\nSigned-off-by: Violeta Sebe <vsebe@ca.ibm.com>","created_at":"2018-03-19T21:08:30Z","updated_at":"2018-03-20T14:22:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a37ec97db891812c372a285424f1b4c6b5d30166","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":698092752,"url":"https://api.github.com/repos/eclipse/openj9/labels/comp:build","name":"comp:build","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/openj9/pulls/1480/commits","review_comments_url":"https://api.github.com/repos/eclipse/openj9/pulls/1480/comments","review_comment_url":"https://api.github.com/repos/eclipse/openj9/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/openj9/issues/1480/comments","statuses_url":"https://api.github.com/repos/eclipse/openj9/statuses/6a12612d420fdb61b64bbaacd7e52a0029bb407e","head":{"label":"vsebe:openj9.jenkins","ref":"openj9.jenkins","sha":"6a12612d420fdb61b64bbaacd7e52a0029bb407e","user":{"login":"vsebe","id":28537856,"avatar_url":"https://avatars2.githubusercontent.com/u/28537856?v=4","gravatar_id":"","url":"https://api.github.com/users/vsebe","html_url":"https://github.com/vsebe","followers_url":"https://api.github.com/users/vsebe/followers","following_url":"https://api.github.com/users/vsebe/following{/other_user}","gists_url":"https://api.github.com/users/vsebe/gists{/gist_id}","starred_url":"https://api.github.com/users/vsebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsebe/subscriptions","organizations_url":"https://api.github.com/users/vsebe/orgs","repos_url":"https://api.github.com/users/vsebe/repos","events_url":"https://api.github.com/users/vsebe/events{/privacy}","received_events_url":"https://api.github.com/users/vsebe/received_events","type":"User","site_admin":false},"repo":{"id":103556370,"name":"openj9","full_name":"vsebe/openj9","owner":{"login":"vsebe","id":28537856,"avatar_url":"https://avatars2.githubusercontent.com/u/28537856?v=4","gravatar_id":"","url":"https://api.github.com/users/vsebe","html_url":"https://github.com/vsebe","followers_url":"https://api.github.com/users/vsebe/followers","following_url":"https://api.github.com/users/vsebe/following{/other_user}","gists_url":"https://api.github.com/users/vsebe/gists{/gist_id}","starred_url":"https://api.github.com/users/vsebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsebe/subscriptions","organizations_url":"https://api.github.com/users/vsebe/orgs","repos_url":"https://api.github.com/users/vsebe/repos","events_url":"https://api.github.com/users/vsebe/events{/privacy}","received_events_url":"https://api.github.com/users/vsebe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vsebe/openj9","description":"OpenJ9","fork":true,"url":"https://api.github.com/repos/vsebe/openj9","forks_url":"https://api.github.com/repos/vsebe/openj9/forks","keys_url":"https://api.github.com/repos/vsebe/openj9/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vsebe/openj9/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vsebe/openj9/teams","hooks_url":"https://api.github.com/repos/vsebe/openj9/hooks","issue_events_url":"https://api.github.com/repos/vsebe/openj9/issues/events{/number}","events_url":"https://api.github.com/repos/vsebe/openj9/events","assignees_url":"https://api.github.com/repos/vsebe/openj9/assignees{/user}","branches_url":"https://api.github.com/repos/vsebe/openj9/branches{/branch}","tags_url":"https://api.github.com/repos/vsebe/openj9/tags","blobs_url":"https://api.github.com/repos/vsebe/openj9/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vsebe/openj9/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vsebe/openj9/git/refs{/sha}","trees_url":"https://api.github.com/repos/vsebe/openj9/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vsebe/openj9/statuses/{sha}","languages_url":"https://api.github.com/repos/vsebe/openj9/languages","stargazers_url":"https://api.github.com/repos/vsebe/openj9/stargazers","contributors_url":"https://api.github.com/repos/vsebe/openj9/contributors","subscribers_url":"https://api.github.com/repos/vsebe/openj9/subscribers","subscription_url":"https://api.github.com/repos/vsebe/openj9/subscription","commits_url":"https://api.github.com/repos/vsebe/openj9/commits{/sha}","git_commits_url":"https://api.github.com/repos/vsebe/openj9/git/commits{/sha}","comments_url":"https://api.github.com/repos/vsebe/openj9/comments{/number}","issue_comment_url":"https://api.github.com/repos/vsebe/openj9/issues/comments{/number}","contents_url":"https://api.github.com/repos/vsebe/openj9/contents/{+path}","compare_url":"https://api.github.com/repos/vsebe/openj9/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vsebe/openj9/merges","archive_url":"https://api.github.com/repos/vsebe/openj9/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vsebe/openj9/downloads","issues_url":"https://api.github.com/repos/vsebe/openj9/issues{/number}","pulls_url":"https://api.github.com/repos/vsebe/openj9/pulls{/number}","milestones_url":"https://api.github.com/repos/vsebe/openj9/milestones{/number}","notifications_url":"https://api.github.com/repos/vsebe/openj9/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vsebe/openj9/labels{/name}","releases_url":"https://api.github.com/repos/vsebe/openj9/releases{/id}","deployments_url":"https://api.github.com/repos/vsebe/openj9/deployments","created_at":"2017-09-14T16:32:27Z","updated_at":"2017-09-14T16:32:55Z","pushed_at":"2018-03-20T14:04:32Z","git_url":"git://github.com/vsebe/openj9.git","ssh_url":"git@github.com:vsebe/openj9.git","clone_url":"https://github.com/vsebe/openj9.git","svn_url":"https://github.com/vsebe/openj9","homepage":null,"size":27186,"stargazers_count":0,"watchers_count":0,"language":"Java","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"8a21f2359e2079cc1bfe244e4995727310f1c580","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":101408117,"name":"openj9","full_name":"eclipse/openj9","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/openj9","description":"Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput.   Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.","fork":false,"url":"https://api.github.com/repos/eclipse/openj9","forks_url":"https://api.github.com/repos/eclipse/openj9/forks","keys_url":"https://api.github.com/repos/eclipse/openj9/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/openj9/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/openj9/teams","hooks_url":"https://api.github.com/repos/eclipse/openj9/hooks","issue_events_url":"https://api.github.com/repos/eclipse/openj9/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/openj9/events","assignees_url":"https://api.github.com/repos/eclipse/openj9/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/openj9/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/openj9/tags","blobs_url":"https://api.github.com/repos/eclipse/openj9/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/openj9/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/openj9/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/openj9/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/openj9/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/openj9/languages","stargazers_url":"https://api.github.com/repos/eclipse/openj9/stargazers","contributors_url":"https://api.github.com/repos/eclipse/openj9/contributors","subscribers_url":"https://api.github.com/repos/eclipse/openj9/subscribers","subscription_url":"https://api.github.com/repos/eclipse/openj9/subscription","commits_url":"https://api.github.com/repos/eclipse/openj9/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/openj9/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/openj9/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/openj9/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/openj9/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/openj9/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/openj9/merges","archive_url":"https://api.github.com/repos/eclipse/openj9/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/openj9/downloads","issues_url":"https://api.github.com/repos/eclipse/openj9/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/openj9/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/openj9/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/openj9/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/openj9/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/openj9/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/openj9/deployments","created_at":"2017-08-25T13:46:07Z","updated_at":"2018-03-20T13:52:32Z","pushed_at":"2018-03-20T14:05:26Z","git_url":"git://github.com/eclipse/openj9.git","ssh_url":"git@github.com:eclipse/openj9.git","clone_url":"https://github.com/eclipse/openj9.git","svn_url":"https://github.com/eclipse/openj9","homepage":"","size":27191,"stargazers_count":1205,"watchers_count":1205,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":235,"mirror_url":null,"archived":false,"open_issues_count":292,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":235,"open_issues":292,"watchers":1205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/openj9/pulls/1480"},"html":{"href":"https://github.com/eclipse/openj9/pull/1480"},"issue":{"href":"https://api.github.com/repos/eclipse/openj9/issues/1480"},"comments":{"href":"https://api.github.com/repos/eclipse/openj9/issues/1480/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/openj9/pulls/1480/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/openj9/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/openj9/pulls/1480/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/openj9/statuses/6a12612d420fdb61b64bbaacd7e52a0029bb407e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"AdamBrousseau"}}