{"action":"created","comment":{"url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/comments/61118090","id":61118090,"diff_hunk":"@@ -35,19 +35,19 @@ set_kubeconfig() {\n   echo \"Kubeconfig created successfully\"\n }\n \n-set_quay_login() {\n-  echo \"Creating docker login for quay.io\"\n+set_artifactory_login() {\n+  echo \"Creating docker login for artifactory\"\n   mkdir /root/.docker\n-  cp /root/.secrets/dockercfg /root/.docker/config.json\n-  echo \"Docker login for quay.io created successfully\"\n+  cp /root/.secrets/config.json /root/.docker/config.json\n+  echo \"Docker login for artifactory created successfully\"\n }\n \n # Allow to pass in jenkins options after --\n if [[ $# -lt 1 ]] || [[ \"$1\" == \"--\"* ]]; then\n   if [ -n \"$SECRETS_BUCKET\" ]; then\n     download_secrets\n     set_kubeconfig\n-    set_quay_login\n+    set_artifactory_login","path":"jenkins.sh","position":30,"original_position":30,"commit_id":"d6d39bfbcc7ced8802bed7000794aa616319163b","original_commit_id":"d6d39bfbcc7ced8802bed7000794aa616319163b","user":{"login":"jon-shanks","id":3877018,"avatar_url":"https://avatars.githubusercontent.com/u/3877018?v=3","gravatar_id":"","url":"https://api.github.com/users/jon-shanks","html_url":"https://github.com/jon-shanks","followers_url":"https://api.github.com/users/jon-shanks/followers","following_url":"https://api.github.com/users/jon-shanks/following{/other_user}","gists_url":"https://api.github.com/users/jon-shanks/gists{/gist_id}","starred_url":"https://api.github.com/users/jon-shanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon-shanks/subscriptions","organizations_url":"https://api.github.com/users/jon-shanks/orgs","repos_url":"https://api.github.com/users/jon-shanks/repos","events_url":"https://api.github.com/users/jon-shanks/events{/privacy}","received_events_url":"https://api.github.com/users/jon-shanks/received_events","type":"User","site_admin":false},"body":"and here too","created_at":"2016-04-26T16:27:54Z","updated_at":"2016-04-26T16:27:54Z","html_url":"https://github.com/UKHomeOffice/jenkins-docker-aws/pull/17#discussion_r61118090","pull_request_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/comments/61118090"},"html":{"href":"https://github.com/UKHomeOffice/jenkins-docker-aws/pull/17#discussion_r61118090"},"pull_request":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/17","id":67913788,"html_url":"https://github.com/UKHomeOffice/jenkins-docker-aws/pull/17","diff_url":"https://github.com/UKHomeOffice/jenkins-docker-aws/pull/17.diff","patch_url":"https://github.com/UKHomeOffice/jenkins-docker-aws/pull/17.patch","issue_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues/17","number":17,"state":"open","locked":false,"title":"Fix s3secrets command, and pull artifactory creds","user":{"login":"jaykeshur","id":3024717,"avatar_url":"https://avatars.githubusercontent.com/u/3024717?v=3","gravatar_id":"","url":"https://api.github.com/users/jaykeshur","html_url":"https://github.com/jaykeshur","followers_url":"https://api.github.com/users/jaykeshur/followers","following_url":"https://api.github.com/users/jaykeshur/following{/other_user}","gists_url":"https://api.github.com/users/jaykeshur/gists{/gist_id}","starred_url":"https://api.github.com/users/jaykeshur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaykeshur/subscriptions","organizations_url":"https://api.github.com/users/jaykeshur/orgs","repos_url":"https://api.github.com/users/jaykeshur/repos","events_url":"https://api.github.com/users/jaykeshur/events{/privacy}","received_events_url":"https://api.github.com/users/jaykeshur/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-26T16:09:03Z","updated_at":"2016-04-26T16:27:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7bc7da6a3a5c2da60dfe17de3e88ff224f5429d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/17/commits","review_comments_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/17/comments","review_comment_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues/17/comments","statuses_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/statuses/d6d39bfbcc7ced8802bed7000794aa616319163b","head":{"label":"UKHomeOffice:fix-secrets-command","ref":"fix-secrets-command","sha":"d6d39bfbcc7ced8802bed7000794aa616319163b","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":41303923,"name":"jenkins-docker-aws","full_name":"UKHomeOffice/jenkins-docker-aws","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/jenkins-docker-aws","description":"Dockerised jenkins application which also includes:","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws","forks_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/deployments","created_at":"2015-08-24T13:14:35Z","updated_at":"2016-04-25T05:55:48Z","pushed_at":"2016-04-26T16:20:39Z","git_url":"git://github.com/UKHomeOffice/jenkins-docker-aws.git","ssh_url":"git@github.com:UKHomeOffice/jenkins-docker-aws.git","clone_url":"https://github.com/UKHomeOffice/jenkins-docker-aws.git","svn_url":"https://github.com/UKHomeOffice/jenkins-docker-aws","homepage":null,"size":20,"stargazers_count":7,"watchers_count":7,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":7,"default_branch":"master"}},"base":{"label":"UKHomeOffice:master","ref":"master","sha":"29cb9ce4a28e71aee6efb10912cb09f3034f11a8","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":41303923,"name":"jenkins-docker-aws","full_name":"UKHomeOffice/jenkins-docker-aws","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/jenkins-docker-aws","description":"Dockerised jenkins application which also includes:","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws","forks_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/deployments","created_at":"2015-08-24T13:14:35Z","updated_at":"2016-04-25T05:55:48Z","pushed_at":"2016-04-26T16:20:39Z","git_url":"git://github.com/UKHomeOffice/jenkins-docker-aws.git","ssh_url":"git@github.com:UKHomeOffice/jenkins-docker-aws.git","clone_url":"https://github.com/UKHomeOffice/jenkins-docker-aws.git","svn_url":"https://github.com/UKHomeOffice/jenkins-docker-aws","homepage":null,"size":20,"stargazers_count":7,"watchers_count":7,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/17"},"html":{"href":"https://github.com/UKHomeOffice/jenkins-docker-aws/pull/17"},"issue":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues/17"},"comments":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/UKHomeOffice/jenkins-docker-aws/statuses/d6d39bfbcc7ced8802bed7000794aa616319163b"}}}}