{"action":"created","comment":{"url":"https://api.github.com/repos/ceph/ceph-build/pulls/comments/80996931","pull_request_review_id":2010029,"id":80996931,"diff_hunk":"@@ -128,3 +128,78 @@ check_binary_existence () {\n     fi\n \n }\n+\n+\n+submit_build_status() {\n+    # A helper script to post (create) the status of a build in shaman\n+    # 'state' can be either 'failed' or 'started'\n+    # 'project' is used to post to the right url in shaman\n+    http_method=$1\n+    state=$2\n+    project=$3\n+    distro=$4\n+    distro_version=$5\n+    distro_arch=$6\n+    cat > $WORKSPACE/build_status.json << EOF\n+{\n+    \"extra\":{\n+        \"version\":\"$vers\",\n+        \"root_build_cause\":\"$ROOT_BUILD_CAUSE\",\n+        \"node_name\":\"$NODE_NAME\",\n+        \"job_name\":\"$JOB_NAME\",\n+        \"url\":\"$BUILD_URL\",\n+        \"build_user\":\"$BUILD_USER\",\n+        \"log_url\":\"$BUILD_URL/consoleFull\"\n+    },\n+    \"state\":\"$state\",\n+    \"distro\":\"$distro\",\n+    \"distro_version\":\"$distro_version\",\n+    \"distro_arch\":\"$distro_arch\",\n+    \"branch\":\"$BRANCH\",","path":"scripts/build_utils.sh","position":31,"original_position":31,"commit_id":"ed1ba084a5162461d474fc534be136d66ea49977","original_commit_id":"ed1ba084a5162461d474fc534be136d66ea49977","user":{"login":"andrewschoen","id":20618,"avatar_url":"https://avatars.githubusercontent.com/u/20618?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewschoen","html_url":"https://github.com/andrewschoen","followers_url":"https://api.github.com/users/andrewschoen/followers","following_url":"https://api.github.com/users/andrewschoen/following{/other_user}","gists_url":"https://api.github.com/users/andrewschoen/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewschoen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewschoen/subscriptions","organizations_url":"https://api.github.com/users/andrewschoen/orgs","repos_url":"https://api.github.com/users/andrewschoen/repos","events_url":"https://api.github.com/users/andrewschoen/events{/privacy}","received_events_url":"https://api.github.com/users/andrewschoen/received_events","type":"User","site_admin":false},"body":"Is this the parsed version of branch that removes any extra forward slashes in the branch name? I think we'd want to get this the same as what gets used in chacra.","created_at":"2016-09-28T19:21:24Z","updated_at":"2016-09-28T19:23:11Z","html_url":"https://github.com/ceph/ceph-build/pull/494#discussion_r80996931","pull_request_url":"https://api.github.com/repos/ceph/ceph-build/pulls/494","_links":{"self":{"href":"https://api.github.com/repos/ceph/ceph-build/pulls/comments/80996931"},"html":{"href":"https://github.com/ceph/ceph-build/pull/494#discussion_r80996931"},"pull_request":{"href":"https://api.github.com/repos/ceph/ceph-build/pulls/494"}}},"pull_request":{"url":"https://api.github.com/repos/ceph/ceph-build/pulls/494","id":87181505,"html_url":"https://github.com/ceph/ceph-build/pull/494","diff_url":"https://github.com/ceph/ceph-build/pull/494.diff","patch_url":"https://github.com/ceph/ceph-build/pull/494.patch","issue_url":"https://api.github.com/repos/ceph/ceph-build/issues/494","number":494,"state":"open","locked":false,"title":"update shaman on build status","user":{"login":"alfredodeza","id":317847,"avatar_url":"https://avatars.githubusercontent.com/u/317847?v=3","gravatar_id":"","url":"https://api.github.com/users/alfredodeza","html_url":"https://github.com/alfredodeza","followers_url":"https://api.github.com/users/alfredodeza/followers","following_url":"https://api.github.com/users/alfredodeza/following{/other_user}","gists_url":"https://api.github.com/users/alfredodeza/gists{/gist_id}","starred_url":"https://api.github.com/users/alfredodeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfredodeza/subscriptions","organizations_url":"https://api.github.com/users/alfredodeza/orgs","repos_url":"https://api.github.com/users/alfredodeza/repos","events_url":"https://api.github.com/users/alfredodeza/events{/privacy}","received_events_url":"https://api.github.com/users/alfredodeza/received_events","type":"User","site_admin":false},"body":"Includes a  couple of helper scripts to avoid repetitive shell-to-json-and-back ","created_at":"2016-09-28T19:10:37Z","updated_at":"2016-09-28T19:23:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6fd90cb2bdc85aeb0a09eefe16bbc0d29e070ff","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ceph/ceph-build/pulls/494/commits","review_comments_url":"https://api.github.com/repos/ceph/ceph-build/pulls/494/comments","review_comment_url":"https://api.github.com/repos/ceph/ceph-build/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ceph/ceph-build/issues/494/comments","statuses_url":"https://api.github.com/repos/ceph/ceph-build/statuses/ed1ba084a5162461d474fc534be136d66ea49977","head":{"label":"ceph:posting-build","ref":"posting-build","sha":"ed1ba084a5162461d474fc534be136d66ea49977","user":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"repo":{"id":2382336,"name":"ceph-build","full_name":"ceph/ceph-build","owner":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ceph/ceph-build","description":"Helper scripts for building the official Ceph packages","fork":false,"url":"https://api.github.com/repos/ceph/ceph-build","forks_url":"https://api.github.com/repos/ceph/ceph-build/forks","keys_url":"https://api.github.com/repos/ceph/ceph-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceph/ceph-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceph/ceph-build/teams","hooks_url":"https://api.github.com/repos/ceph/ceph-build/hooks","issue_events_url":"https://api.github.com/repos/ceph/ceph-build/issues/events{/number}","events_url":"https://api.github.com/repos/ceph/ceph-build/events","assignees_url":"https://api.github.com/repos/ceph/ceph-build/assignees{/user}","branches_url":"https://api.github.com/repos/ceph/ceph-build/branches{/branch}","tags_url":"https://api.github.com/repos/ceph/ceph-build/tags","blobs_url":"https://api.github.com/repos/ceph/ceph-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceph/ceph-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceph/ceph-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceph/ceph-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceph/ceph-build/statuses/{sha}","languages_url":"https://api.github.com/repos/ceph/ceph-build/languages","stargazers_url":"https://api.github.com/repos/ceph/ceph-build/stargazers","contributors_url":"https://api.github.com/repos/ceph/ceph-build/contributors","subscribers_url":"https://api.github.com/repos/ceph/ceph-build/subscribers","subscription_url":"https://api.github.com/repos/ceph/ceph-build/subscription","commits_url":"https://api.github.com/repos/ceph/ceph-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceph/ceph-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceph/ceph-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceph/ceph-build/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceph/ceph-build/contents/{+path}","compare_url":"https://api.github.com/repos/ceph/ceph-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceph/ceph-build/merges","archive_url":"https://api.github.com/repos/ceph/ceph-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceph/ceph-build/downloads","issues_url":"https://api.github.com/repos/ceph/ceph-build/issues{/number}","pulls_url":"https://api.github.com/repos/ceph/ceph-build/pulls{/number}","milestones_url":"https://api.github.com/repos/ceph/ceph-build/milestones{/number}","notifications_url":"https://api.github.com/repos/ceph/ceph-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceph/ceph-build/labels{/name}","releases_url":"https://api.github.com/repos/ceph/ceph-build/releases{/id}","deployments_url":"https://api.github.com/repos/ceph/ceph-build/deployments","created_at":"2011-09-14T00:30:11Z","updated_at":"2016-08-22T17:11:03Z","pushed_at":"2016-09-28T19:10:38Z","git_url":"git://github.com/ceph/ceph-build.git","ssh_url":"git@github.com:ceph/ceph-build.git","clone_url":"https://github.com/ceph/ceph-build.git","svn_url":"https://github.com/ceph/ceph-build","homepage":"","size":1118,"stargazers_count":12,"watchers_count":12,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":6,"forks":21,"open_issues":6,"watchers":12,"default_branch":"master"}},"base":{"label":"ceph:master","ref":"master","sha":"a8253c64d40f808155b0149bbd8c821f0c3c1340","user":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"repo":{"id":2382336,"name":"ceph-build","full_name":"ceph/ceph-build","owner":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ceph/ceph-build","description":"Helper scripts for building the official Ceph packages","fork":false,"url":"https://api.github.com/repos/ceph/ceph-build","forks_url":"https://api.github.com/repos/ceph/ceph-build/forks","keys_url":"https://api.github.com/repos/ceph/ceph-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceph/ceph-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceph/ceph-build/teams","hooks_url":"https://api.github.com/repos/ceph/ceph-build/hooks","issue_events_url":"https://api.github.com/repos/ceph/ceph-build/issues/events{/number}","events_url":"https://api.github.com/repos/ceph/ceph-build/events","assignees_url":"https://api.github.com/repos/ceph/ceph-build/assignees{/user}","branches_url":"https://api.github.com/repos/ceph/ceph-build/branches{/branch}","tags_url":"https://api.github.com/repos/ceph/ceph-build/tags","blobs_url":"https://api.github.com/repos/ceph/ceph-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceph/ceph-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceph/ceph-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceph/ceph-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceph/ceph-build/statuses/{sha}","languages_url":"https://api.github.com/repos/ceph/ceph-build/languages","stargazers_url":"https://api.github.com/repos/ceph/ceph-build/stargazers","contributors_url":"https://api.github.com/repos/ceph/ceph-build/contributors","subscribers_url":"https://api.github.com/repos/ceph/ceph-build/subscribers","subscription_url":"https://api.github.com/repos/ceph/ceph-build/subscription","commits_url":"https://api.github.com/repos/ceph/ceph-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceph/ceph-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceph/ceph-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceph/ceph-build/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceph/ceph-build/contents/{+path}","compare_url":"https://api.github.com/repos/ceph/ceph-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceph/ceph-build/merges","archive_url":"https://api.github.com/repos/ceph/ceph-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceph/ceph-build/downloads","issues_url":"https://api.github.com/repos/ceph/ceph-build/issues{/number}","pulls_url":"https://api.github.com/repos/ceph/ceph-build/pulls{/number}","milestones_url":"https://api.github.com/repos/ceph/ceph-build/milestones{/number}","notifications_url":"https://api.github.com/repos/ceph/ceph-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceph/ceph-build/labels{/name}","releases_url":"https://api.github.com/repos/ceph/ceph-build/releases{/id}","deployments_url":"https://api.github.com/repos/ceph/ceph-build/deployments","created_at":"2011-09-14T00:30:11Z","updated_at":"2016-08-22T17:11:03Z","pushed_at":"2016-09-28T19:10:38Z","git_url":"git://github.com/ceph/ceph-build.git","ssh_url":"git@github.com:ceph/ceph-build.git","clone_url":"https://github.com/ceph/ceph-build.git","svn_url":"https://github.com/ceph/ceph-build","homepage":"","size":1118,"stargazers_count":12,"watchers_count":12,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":6,"forks":21,"open_issues":6,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ceph/ceph-build/pulls/494"},"html":{"href":"https://github.com/ceph/ceph-build/pull/494"},"issue":{"href":"https://api.github.com/repos/ceph/ceph-build/issues/494"},"comments":{"href":"https://api.github.com/repos/ceph/ceph-build/issues/494/comments"},"review_comments":{"href":"https://api.github.com/repos/ceph/ceph-build/pulls/494/comments"},"review_comment":{"href":"https://api.github.com/repos/ceph/ceph-build/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ceph/ceph-build/pulls/494/commits"},"statuses":{"href":"https://api.github.com/repos/ceph/ceph-build/statuses/ed1ba084a5162461d474fc534be136d66ea49977"}}}}
{"actor":{"display_login":"andrewschoen"}}