{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls/12","id":210665025,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNjY1MDI1","html_url":"https://github.com/ONSdigital/business-index-elastic-index/pull/12","diff_url":"https://github.com/ONSdigital/business-index-elastic-index/pull/12.diff","patch_url":"https://github.com/ONSdigital/business-index-elastic-index/pull/12.patch","issue_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues/12","number":12,"state":"open","locked":false,"title":"Fix/reg 1724 parse oozie status","user":{"login":"ONS-Tom","id":23335263,"node_id":"MDQ6VXNlcjIzMzM1MjYz","avatar_url":"https://avatars0.githubusercontent.com/u/23335263?v=4","gravatar_id":"","url":"https://api.github.com/users/ONS-Tom","html_url":"https://github.com/ONS-Tom","followers_url":"https://api.github.com/users/ONS-Tom/followers","following_url":"https://api.github.com/users/ONS-Tom/following{/other_user}","gists_url":"https://api.github.com/users/ONS-Tom/gists{/gist_id}","starred_url":"https://api.github.com/users/ONS-Tom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONS-Tom/subscriptions","organizations_url":"https://api.github.com/users/ONS-Tom/orgs","repos_url":"https://api.github.com/users/ONS-Tom/repos","events_url":"https://api.github.com/users/ONS-Tom/events{/privacy}","received_events_url":"https://api.github.com/users/ONS-Tom/received_events","type":"User","site_admin":false},"body":"The `oozie job -poll $jobId` command does not exit once it has reached a completed status (SUCCEEDED, KILLED etc.), so the output of the polling needs to be parsed so that based upon the status, the command can be exited with the appropriate exit code.\r\n\r\nOnce the `oozie job -poll $jobId` command has been exited, we can use that exit code to decide whether or not to fail the script. E.g. if the `oozie job -poll $jobId` command exits with a non-zero exit code, the whole script will fail.\r\n\r\nThe docs for the `oozie` poll command can be found [here](https://oozie.apache.org/docs/4.2.0/DG_CommandLineTool.html#Polling_an_Oozie_job).","created_at":"2018-08-24T07:51:07Z","updated_at":"2018-08-24T07:51:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues/12/comments","statuses_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/statuses/000c31dd7618030c5fd82b1c4d33325c4f3969b4","head":{"label":"ONSdigital:fix/reg-1724-parse-oozie-status","ref":"fix/reg-1724-parse-oozie-status","sha":"000c31dd7618030c5fd82b1c4d33325c4f3969b4","user":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":141686568,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2ODY1Njg=","name":"business-index-elastic-index","full_name":"ONSdigital/business-index-elastic-index","owner":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/business-index-elastic-index","description":"Elastic Search Index definition for BI","fork":false,"url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index","forks_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/forks","keys_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/teams","hooks_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/events","assignees_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/tags","blobs_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/subscription","commits_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/merges","archive_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/downloads","issues_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/deployments","created_at":"2018-07-20T08:38:25Z","updated_at":"2018-08-22T15:01:24Z","pushed_at":"2018-08-24T07:35:08Z","git_url":"git://github.com/ONSdigital/business-index-elastic-index.git","ssh_url":"git@github.com:ONSdigital/business-index-elastic-index.git","clone_url":"https://github.com/ONSdigital/business-index-elastic-index.git","svn_url":"https://github.com/ONSdigital/business-index-elastic-index","homepage":null,"size":31,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"ONSdigital:master","ref":"master","sha":"5b36481fce4f8f5e0739717564eba1e6e2b91898","user":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":141686568,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2ODY1Njg=","name":"business-index-elastic-index","full_name":"ONSdigital/business-index-elastic-index","owner":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/business-index-elastic-index","description":"Elastic Search Index definition for BI","fork":false,"url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index","forks_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/forks","keys_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/teams","hooks_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/events","assignees_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/tags","blobs_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/subscription","commits_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/merges","archive_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/downloads","issues_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/deployments","created_at":"2018-07-20T08:38:25Z","updated_at":"2018-08-22T15:01:24Z","pushed_at":"2018-08-24T07:35:08Z","git_url":"git://github.com/ONSdigital/business-index-elastic-index.git","ssh_url":"git@github.com:ONSdigital/business-index-elastic-index.git","clone_url":"https://github.com/ONSdigital/business-index-elastic-index.git","svn_url":"https://github.com/ONSdigital/business-index-elastic-index","homepage":null,"size":31,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls/12"},"html":{"href":"https://github.com/ONSdigital/business-index-elastic-index/pull/12"},"issue":{"href":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues/12"},"comments":{"href":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/business-index-elastic-index/statuses/000c31dd7618030c5fd82b1c4d33325c4f3969b4"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":24,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"ONS-Tom"}}