{"action":"created","comment":{"url":"https://api.github.com/repos/RackHD/on-core/pulls/comments/49672537","id":49672537,"diff_hunk":"@@ -0,0 +1,30 @@\n+#!/bin/bash\n+\n+#Gets the latest Master build\n+GetMasterBuild () {\n+\n+    BUILD=$(curl -s 'https://api.travis-ci.org/repos/RackHD/'$1'/branches/master' | grep -o '{\"branch\":{\"id\":[0-9]*,' | grep -o '[0-9]' | tr -d '\\n')\n+\n+    echo $BUILD\n+}\n+\n+# Get last child project build number\n+BUILD_NUM_DHCP=$(GetMasterBuild on-dhcp-proxy)\n+BUILD_NUM_TASKS=$(GetMasterBuild on-tasks)\n+BUILD_NUM_TFTP=$(GetMasterBuild on-tftp)\n+BUILD_NUM_SYSLOG=$(GetMasterBuild on-syslog)\n+\n+# Restart last child project build\n+curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM_DHCP/restart --header \"Authorization: token \"$AUTH_TOKEN\n+curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM_TASKS/restart --header \"Authorization: token \"$AUTH_TOKEN\n+curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM_TFTP/restart --header \"Authorization: token \"$AUTH_TOKEN\n+curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM_SYSLOG/restart --header \"Authorization: token \"$AUTH_TOKEN\n+\n+#Echo out what builds where restarted\n+echo Restarted on-dhcp-proxy Build = $BUILD_NUM_DHCP\n+echo Restarted on-tasks = $BUILD_NUM_TASKS\n+echo Restarted on-tftp Build = $BUILD_NUM_TFTP\n+echo Restarted on-syslog Build = $BUILD_NUM_SYSLOG\n+\n+\n+echo \"Note - on-core restarts builds for on-dhcp-proxy, on-tftp, on-syslog, and on-tasks. When on-tasks succeeds, it restarts builds for on-taskgraph and on-http. \"","path":"build_children.sh","position":30,"original_position":30,"commit_id":"e8229628cf6275075e6de6a1db69866fc0b8cc4f","original_commit_id":"e8229628cf6275075e6de6a1db69866fc0b8cc4f","user":{"login":"benbp","id":1020379,"avatar_url":"https://avatars.githubusercontent.com/u/1020379?v=3","gravatar_id":"","url":"https://api.github.com/users/benbp","html_url":"https://github.com/benbp","followers_url":"https://api.github.com/users/benbp/followers","following_url":"https://api.github.com/users/benbp/following{/other_user}","gists_url":"https://api.github.com/users/benbp/gists{/gist_id}","starred_url":"https://api.github.com/users/benbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbp/subscriptions","organizations_url":"https://api.github.com/users/benbp/orgs","repos_url":"https://api.github.com/users/benbp/repos","events_url":"https://api.github.com/users/benbp/events{/privacy}","received_events_url":"https://api.github.com/users/benbp/received_events","type":"User","site_admin":false},"body":"Yes, thanks.","created_at":"2016-01-14T00:24:09Z","updated_at":"2016-01-14T00:24:09Z","html_url":"https://github.com/RackHD/on-core/pull/65#discussion_r49672537","pull_request_url":"https://api.github.com/repos/RackHD/on-core/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/RackHD/on-core/pulls/comments/49672537"},"html":{"href":"https://github.com/RackHD/on-core/pull/65#discussion_r49672537"},"pull_request":{"href":"https://api.github.com/repos/RackHD/on-core/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/RackHD/on-core/pulls/65","id":55940095,"html_url":"https://github.com/RackHD/on-core/pull/65","diff_url":"https://github.com/RackHD/on-core/pull/65.diff","patch_url":"https://github.com/RackHD/on-core/pull/65.patch","issue_url":"https://api.github.com/repos/RackHD/on-core/issues/65","number":65,"state":"open","locked":false,"title":"WIP - added script and secure variable for dependent builds","user":{"login":"tldavies","id":1849225,"avatar_url":"https://avatars.githubusercontent.com/u/1849225?v=3","gravatar_id":"","url":"https://api.github.com/users/tldavies","html_url":"https://github.com/tldavies","followers_url":"https://api.github.com/users/tldavies/followers","following_url":"https://api.github.com/users/tldavies/following{/other_user}","gists_url":"https://api.github.com/users/tldavies/gists{/gist_id}","starred_url":"https://api.github.com/users/tldavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tldavies/subscriptions","organizations_url":"https://api.github.com/users/tldavies/orgs","repos_url":"https://api.github.com/users/tldavies/repos","events_url":"https://api.github.com/users/tldavies/events{/privacy}","received_events_url":"https://api.github.com/users/tldavies/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-13T19:00:47Z","updated_at":"2016-01-14T00:24:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"922120966d7e023cbb1a3962f56be1393373cf54","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RackHD/on-core/pulls/65/commits","review_comments_url":"https://api.github.com/repos/RackHD/on-core/pulls/65/comments","review_comment_url":"https://api.github.com/repos/RackHD/on-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RackHD/on-core/issues/65/comments","statuses_url":"https://api.github.com/repos/RackHD/on-core/statuses/e8229628cf6275075e6de6a1db69866fc0b8cc4f","head":{"label":"RackHD:dependentbuilds","ref":"dependentbuilds","sha":"e8229628cf6275075e6de6a1db69866fc0b8cc4f","user":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"repo":{"id":41690044,"name":"on-core","full_name":"RackHD/on-core","owner":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RackHD/on-core","description":"","fork":false,"url":"https://api.github.com/repos/RackHD/on-core","forks_url":"https://api.github.com/repos/RackHD/on-core/forks","keys_url":"https://api.github.com/repos/RackHD/on-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RackHD/on-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RackHD/on-core/teams","hooks_url":"https://api.github.com/repos/RackHD/on-core/hooks","issue_events_url":"https://api.github.com/repos/RackHD/on-core/issues/events{/number}","events_url":"https://api.github.com/repos/RackHD/on-core/events","assignees_url":"https://api.github.com/repos/RackHD/on-core/assignees{/user}","branches_url":"https://api.github.com/repos/RackHD/on-core/branches{/branch}","tags_url":"https://api.github.com/repos/RackHD/on-core/tags","blobs_url":"https://api.github.com/repos/RackHD/on-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RackHD/on-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RackHD/on-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/RackHD/on-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RackHD/on-core/statuses/{sha}","languages_url":"https://api.github.com/repos/RackHD/on-core/languages","stargazers_url":"https://api.github.com/repos/RackHD/on-core/stargazers","contributors_url":"https://api.github.com/repos/RackHD/on-core/contributors","subscribers_url":"https://api.github.com/repos/RackHD/on-core/subscribers","subscription_url":"https://api.github.com/repos/RackHD/on-core/subscription","commits_url":"https://api.github.com/repos/RackHD/on-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/RackHD/on-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/RackHD/on-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/RackHD/on-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/RackHD/on-core/contents/{+path}","compare_url":"https://api.github.com/repos/RackHD/on-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RackHD/on-core/merges","archive_url":"https://api.github.com/repos/RackHD/on-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RackHD/on-core/downloads","issues_url":"https://api.github.com/repos/RackHD/on-core/issues{/number}","pulls_url":"https://api.github.com/repos/RackHD/on-core/pulls{/number}","milestones_url":"https://api.github.com/repos/RackHD/on-core/milestones{/number}","notifications_url":"https://api.github.com/repos/RackHD/on-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RackHD/on-core/labels{/name}","releases_url":"https://api.github.com/repos/RackHD/on-core/releases{/id}","created_at":"2015-08-31T17:28:32Z","updated_at":"2016-01-13T05:43:33Z","pushed_at":"2016-01-13T23:24:27Z","git_url":"git://github.com/RackHD/on-core.git","ssh_url":"git@github.com:RackHD/on-core.git","clone_url":"https://github.com/RackHD/on-core.git","svn_url":"https://github.com/RackHD/on-core","homepage":null,"size":784,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":2,"forks":21,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"RackHD:master","ref":"master","sha":"39611fe469b175c88b88fe064bd01c309e0d3e1a","user":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"repo":{"id":41690044,"name":"on-core","full_name":"RackHD/on-core","owner":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RackHD/on-core","description":"","fork":false,"url":"https://api.github.com/repos/RackHD/on-core","forks_url":"https://api.github.com/repos/RackHD/on-core/forks","keys_url":"https://api.github.com/repos/RackHD/on-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RackHD/on-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RackHD/on-core/teams","hooks_url":"https://api.github.com/repos/RackHD/on-core/hooks","issue_events_url":"https://api.github.com/repos/RackHD/on-core/issues/events{/number}","events_url":"https://api.github.com/repos/RackHD/on-core/events","assignees_url":"https://api.github.com/repos/RackHD/on-core/assignees{/user}","branches_url":"https://api.github.com/repos/RackHD/on-core/branches{/branch}","tags_url":"https://api.github.com/repos/RackHD/on-core/tags","blobs_url":"https://api.github.com/repos/RackHD/on-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RackHD/on-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RackHD/on-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/RackHD/on-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RackHD/on-core/statuses/{sha}","languages_url":"https://api.github.com/repos/RackHD/on-core/languages","stargazers_url":"https://api.github.com/repos/RackHD/on-core/stargazers","contributors_url":"https://api.github.com/repos/RackHD/on-core/contributors","subscribers_url":"https://api.github.com/repos/RackHD/on-core/subscribers","subscription_url":"https://api.github.com/repos/RackHD/on-core/subscription","commits_url":"https://api.github.com/repos/RackHD/on-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/RackHD/on-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/RackHD/on-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/RackHD/on-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/RackHD/on-core/contents/{+path}","compare_url":"https://api.github.com/repos/RackHD/on-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RackHD/on-core/merges","archive_url":"https://api.github.com/repos/RackHD/on-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RackHD/on-core/downloads","issues_url":"https://api.github.com/repos/RackHD/on-core/issues{/number}","pulls_url":"https://api.github.com/repos/RackHD/on-core/pulls{/number}","milestones_url":"https://api.github.com/repos/RackHD/on-core/milestones{/number}","notifications_url":"https://api.github.com/repos/RackHD/on-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RackHD/on-core/labels{/name}","releases_url":"https://api.github.com/repos/RackHD/on-core/releases{/id}","created_at":"2015-08-31T17:28:32Z","updated_at":"2016-01-13T05:43:33Z","pushed_at":"2016-01-13T23:24:27Z","git_url":"git://github.com/RackHD/on-core.git","ssh_url":"git@github.com:RackHD/on-core.git","clone_url":"https://github.com/RackHD/on-core.git","svn_url":"https://github.com/RackHD/on-core","homepage":null,"size":784,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":2,"forks":21,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RackHD/on-core/pulls/65"},"html":{"href":"https://github.com/RackHD/on-core/pull/65"},"issue":{"href":"https://api.github.com/repos/RackHD/on-core/issues/65"},"comments":{"href":"https://api.github.com/repos/RackHD/on-core/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/RackHD/on-core/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/RackHD/on-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RackHD/on-core/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/RackHD/on-core/statuses/e8229628cf6275075e6de6a1db69866fc0b8cc4f"}}}}