GitHub PullRequestReviewCommentEvent at 2014-07-17 00:28:25
Repository: git-tools
Actor: daymanc
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/piston/git-tools/pulls/comments/15036317","id":15036317,"diff_hunk":"@@ -4,27 +4,66 @@ set -x\n set -e\n set -o pipefail\n \n-if [ -z \"$FILESERVER\" -o -z \"$FS_SSH_USER\" -o -z \"$RELEASE_VERSION\" -o -z \"$GITHUB_OWNER\" -o -z \"$GITHUB_BRANCH\" -o -z \"$BUILD_NUMBER\" -o -z \"$WORKSPACE\" ]\n+JENKINS_CLUSTER=\"20\"\n+\n+if [ -z \"${FILESERVER}\" -o -z \"${FS_SSH_USER}\" -o -z \"${RELEASE_VERSION}\" -o -z \"${GITHUB_OWNER}\" -o -z \"${GITHUB_BRANCH}\" -o -z \"${BUILD_NUMBER}\" -o -z \"${WORKSPACE}\" ]\n then\n     echo \"Required variable not set\" >&2\n     exit 1\n fi\n \n-RELEASE_VERSION_ESCAPED=$(echo \"$RELEASE_VERSION\" | sed -e 's|\\.|\\\\\\.|g')\n+# If we have a source version and a release version then we should be part of an upgrade\n+[ \"${SOURCE_VERSION}\" ] && UPGRADE=1\n+\n+# If not defined, then we are bound to the ever-locked Jenkins cluster 20\n+CLUSTER=${CLUSTER:-${JENKINS_CLUSTER}}\n+BUILD_STRING=\"automated-build${CLUSTER}\"\n+CLUSTER_LOGFILE=\"${CLUSTER}-messages\"\n+AUTOMATED_BUILD_GZIP=\"automated-build.log.gz\"\n+\n+EXECUTOR_NUMBER=${EXECUTOR_NUMBER:=user-$LOGNAME}\n+\n+SOURCE_VERSION_ESCAPED=$(echo \"${SOURCE_VERSION}\" | sed -e 's|\\.|\\\\\\.|g')\n+RELEASE_VERSION_ESCAPED=$(echo \"${RELEASE_VERSION}\" | sed -e 's|\\.|\\\\\\.|g')\n+\n+env | sort\n+\n+# Push in a finish delimiter to the finished job\n+nc -w0 -u ${FILESERVER} 514 <<< \"${BUILD_STRING}: Build ${RELEASE_VERSION} (${BUILD_NUMBER}) finish\"\n \n-nc -w0 -u $FILESERVER 514 <<< \"automated-build20: Build $RELEASE_VERSION ($BUILD_NUMBER) finish\"\n+if [ \"${UPGRADE}\" ]\n+then\n+    echo \"NOTE: This was an Upgrade test.\"\n+    RESULTS_LOG=\"upgrade-test-${SOURCE_VERSION}-to-${RELEASE_VERSION}-testid-${BUILD_NUMBER}\"\n+    TEACUP_ARTIFACTS_DIR=\"teacup-artifacts-${SOURCE_VERSION}-to-${RELEASE_VERSION}-testid-${BUILD_NUMBER}\"\n+\n+    ssh ${FS_SSH_USER}@${FILESERVER} \" \\\n+        zcat /var/log/${CLUSTER_LOGFILE}.1.gz | \\\n+        cat - /var/log/${CLUSTER_LOGFILE} | \\\n+        awk '/ ${BUILD_STRING}: Build ${SOURCE_VERSION_ESCAPED} \\(${BUILD_NUMBER}\\) start FLAVOR=pentos/,/ ${BUILD_STRING}: Build ${RELEASE_VERSION_ESCAPED} \\(${BUILD_NUMBER}\\) finish$/' | \\","path":"capture-logs.sh","position":43,"original_position":43,"commit_id":"f692d5909b27cfbfb70d386dae49c273c946908c","original_commit_id":"f692d5909b27cfbfb70d386dae49c273c946908c","user":{"login":"daymanc","id":7120687,"avatar_url":"https://avatars.githubusercontent.com/u/7120687?","gravatar_id":"3291a6a2f3ec3c8bb06d406b62188254","url":"https://api.github.com/users/daymanc","html_url":"https://github.com/daymanc","followers_url":"https://api.github.com/users/daymanc/followers","following_url":"https://api.github.com/users/daymanc/following{/other_user}","gists_url":"https://api.github.com/users/daymanc/gists{/gist_id}","starred_url":"https://api.github.com/users/daymanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daymanc/subscriptions","organizations_url":"https://api.github.com/users/daymanc/orgs","repos_url":"https://api.github.com/users/daymanc/repos","events_url":"https://api.github.com/users/daymanc/events{/privacy}","received_events_url":"https://api.github.com/users/daymanc/received_events","type":"User","site_admin":false},"body":"Sure thing I'll combine them.","created_at":"2014-07-17T00:28:25Z","updated_at":"2014-07-17T00:28:25Z","html_url":"https://github.com/piston/git-tools/pull/2#discussion_r15036317","pull_request_url":"https://api.github.com/repos/piston/git-tools/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/piston/git-tools/pulls/comments/15036317"},"html":{"href":"https://github.com/piston/git-tools/pull/2#discussion_r15036317"},"pull_request":{"href":"https://api.github.com/repos/piston/git-tools/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/piston/git-tools/pulls/2","id":18501380,"html_url":"https://github.com/piston/git-tools/pull/2","diff_url":"https://github.com/piston/git-tools/pull/2.diff","patch_url":"https://github.com/piston/git-tools/pull/2.patch","issue_url":"https://api.github.com/repos/piston/git-tools/issues/2","number":2,"state":"open","title":"Capturelogchange","user":{"login":"daymanc","id":7120687,"avatar_url":"https://avatars.githubusercontent.com/u/7120687?","gravatar_id":"3291a6a2f3ec3c8bb06d406b62188254","url":"https://api.github.com/users/daymanc","html_url":"https://github.com/daymanc","followers_url":"https://api.github.com/users/daymanc/followers","following_url":"https://api.github.com/users/daymanc/following{/other_user}","gists_url":"https://api.github.com/users/daymanc/gists{/gist_id}","starred_url":"https://api.github.com/users/daymanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daymanc/subscriptions","organizations_url":"https://api.github.com/users/daymanc/orgs","repos_url":"https://api.github.com/users/daymanc/repos","events_url":"https://api.github.com/users/daymanc/events{/privacy}","received_events_url":"https://api.github.com/users/daymanc/received_events","type":"User","site_admin":false},"body":"Upgrade support in Jenkins.\r\n\r\nhttps://albino.pistoncloud.com/job/Upgrade_Tests/325/console\r\n\r\nDisregard everything after:\r\n# Done.\r\nexit\r\n\r\nscript-wise as it's not run and will be removed once changes are merged to master.\r\n","created_at":"2014-07-16T23:13:09Z","updated_at":"2014-07-17T00:28:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89bc2a0e314f5f5a8cd005c696a73e66d75cf66a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/piston/git-tools/pulls/2/commits","review_comments_url":"https://api.github.com/repos/piston/git-tools/pulls/2/comments","review_comment_url":"https://api.github.com/repos/piston/git-tools/pulls/comments/{number}","comments_url":"https://api.github.com/repos/piston/git-tools/issues/2/comments","statuses_url":"https://api.github.com/repos/piston/git-tools/statuses/f692d5909b27cfbfb70d386dae49c273c946908c","head":{"label":"daymanc:capturelogchange","ref":"capturelogchange","sha":"f692d5909b27cfbfb70d386dae49c273c946908c","user":{"login":"daymanc","id":7120687,"avatar_url":"https://avatars.githubusercontent.com/u/7120687?","gravatar_id":"3291a6a2f3ec3c8bb06d406b62188254","url":"https://api.github.com/users/daymanc","html_url":"https://github.com/daymanc","followers_url":"https://api.github.com/users/daymanc/followers","following_url":"https://api.github.com/users/daymanc/following{/other_user}","gists_url":"https://api.github.com/users/daymanc/gists{/gist_id}","starred_url":"https://api.github.com/users/daymanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daymanc/subscriptions","organizations_url":"https://api.github.com/users/daymanc/orgs","repos_url":"https://api.github.com/users/daymanc/repos","events_url":"https://api.github.com/users/daymanc/events{/privacy}","received_events_url":"https://api.github.com/users/daymanc/received_events","type":"User","site_admin":false},"repo":{"id":21397444,"name":"git-tools","full_name":"daymanc/git-tools","owner":{"login":"daymanc","id":7120687,"avatar_url":"https://avatars.githubusercontent.com/u/7120687?","gravatar_id":"3291a6a2f3ec3c8bb06d406b62188254","url":"https://api.github.com/users/daymanc","html_url":"https://github.com/daymanc","followers_url":"https://api.github.com/users/daymanc/followers","following_url":"https://api.github.com/users/daymanc/following{/other_user}","gists_url":"https://api.github.com/users/daymanc/gists{/gist_id}","starred_url":"https://api.github.com/users/daymanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daymanc/subscriptions","organizations_url":"https://api.github.com/users/daymanc/orgs","repos_url":"https://api.github.com/users/daymanc/repos","events_url":"https://api.github.com/users/daymanc/events{/privacy}","received_events_url":"https://api.github.com/users/daymanc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daymanc/git-tools","description":"small set of git helpers","fork":true,"url":"https://api.github.com/repos/daymanc/git-tools","forks_url":"https://api.github.com/repos/daymanc/git-tools/forks","keys_url":"https://api.github.com/repos/daymanc/git-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daymanc/git-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daymanc/git-tools/teams","hooks_url":"https://api.github.com/repos/daymanc/git-tools/hooks","issue_events_url":"https://api.github.com/repos/daymanc/git-tools/issues/events{/number}","events_url":"https://api.github.com/repos/daymanc/git-tools/events","assignees_url":"https://api.github.com/repos/daymanc/git-tools/assignees{/user}","branches_url":"https://api.github.com/repos/daymanc/git-tools/branches{/branch}","tags_url":"https://api.github.com/repos/daymanc/git-tools/tags","blobs_url":"https://api.github.com/repos/daymanc/git-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daymanc/git-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daymanc/git-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/daymanc/git-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daymanc/git-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/daymanc/git-tools/languages","stargazers_url":"https://api.github.com/repos/daymanc/git-tools/stargazers","contributors_url":"https://api.github.com/repos/daymanc/git-tools/contributors","subscribers_url":"https://api.github.com/repos/daymanc/git-tools/subscribers","subscription_url":"https://api.github.com/repos/daymanc/git-tools/subscription","commits_url":"https://api.github.com/repos/daymanc/git-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/daymanc/git-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/daymanc/git-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/daymanc/git-tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/daymanc/git-tools/contents/{+path}","compare_url":"https://api.github.com/repos/daymanc/git-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daymanc/git-tools/merges","archive_url":"https://api.github.com/repos/daymanc/git-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daymanc/git-tools/downloads","issues_url":"https://api.github.com/repos/daymanc/git-tools/issues{/number}","pulls_url":"https://api.github.com/repos/daymanc/git-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/daymanc/git-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/daymanc/git-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daymanc/git-tools/labels{/name}","releases_url":"https://api.github.com/repos/daymanc/git-tools/releases{/id}","created_at":"2014-07-01T18:00:26Z","updated_at":"2014-06-23T19:57:19Z","pushed_at":"2014-07-16T22:17:46Z","git_url":"git://github.com/daymanc/git-tools.git","ssh_url":"git@github.com:daymanc/git-tools.git","clone_url":"https://github.com/daymanc/git-tools.git","svn_url":"https://github.com/daymanc/git-tools","homepage":"","size":129,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"piston:master","ref":"master","sha":"e50e4ad56f159f5afe12e84fb003c6aedebe127f","user":{"login":"piston","id":563208,"avatar_url":"https://avatars.githubusercontent.com/u/563208?","gravatar_id":"66c304199f33e73da7295873f39d3509","url":"https://api.github.com/users/piston","html_url":"https://github.com/piston","followers_url":"https://api.github.com/users/piston/followers","following_url":"https://api.github.com/users/piston/following{/other_user}","gists_url":"https://api.github.com/users/piston/gists{/gist_id}","starred_url":"https://api.github.com/users/piston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piston/subscriptions","organizations_url":"https://api.github.com/users/piston/orgs","repos_url":"https://api.github.com/users/piston/repos","events_url":"https://api.github.com/users/piston/events{/privacy}","received_events_url":"https://api.github.com/users/piston/received_events","type":"Organization","site_admin":false},"repo":{"id":3566805,"name":"git-tools","full_name":"piston/git-tools","owner":{"login":"piston","id":563208,"avatar_url":"https://avatars.githubusercontent.com/u/563208?","gravatar_id":"66c304199f33e73da7295873f39d3509","url":"https://api.github.com/users/piston","html_url":"https://github.com/piston","followers_url":"https://api.github.com/users/piston/followers","following_url":"https://api.github.com/users/piston/following{/other_user}","gists_url":"https://api.github.com/users/piston/gists{/gist_id}","starred_url":"https://api.github.com/users/piston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piston/subscriptions","organizations_url":"https://api.github.com/users/piston/orgs","repos_url":"https://api.github.com/users/piston/repos","events_url":"https://api.github.com/users/piston/events{/privacy}","received_events_url":"https://api.github.com/users/piston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/piston/git-tools","description":"small set of git helpers","fork":false,"url":"https://api.github.com/repos/piston/git-tools","forks_url":"https://api.github.com/repos/piston/git-tools/forks","keys_url":"https://api.github.com/repos/piston/git-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piston/git-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piston/git-tools/teams","hooks_url":"https://api.github.com/repos/piston/git-tools/hooks","issue_events_url":"https://api.github.com/repos/piston/git-tools/issues/events{/number}","events_url":"https://api.github.com/repos/piston/git-tools/events","assignees_url":"https://api.github.com/repos/piston/git-tools/assignees{/user}","branches_url":"https://api.github.com/repos/piston/git-tools/branches{/branch}","tags_url":"https://api.github.com/repos/piston/git-tools/tags","blobs_url":"https://api.github.com/repos/piston/git-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piston/git-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piston/git-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/piston/git-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piston/git-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/piston/git-tools/languages","stargazers_url":"https://api.github.com/repos/piston/git-tools/stargazers","contributors_url":"https://api.github.com/repos/piston/git-tools/contributors","subscribers_url":"https://api.github.com/repos/piston/git-tools/subscribers","subscription_url":"https://api.github.com/repos/piston/git-tools/subscription","commits_url":"https://api.github.com/repos/piston/git-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/piston/git-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/piston/git-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/piston/git-tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/piston/git-tools/contents/{+path}","compare_url":"https://api.github.com/repos/piston/git-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piston/git-tools/merges","archive_url":"https://api.github.com/repos/piston/git-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piston/git-tools/downloads","issues_url":"https://api.github.com/repos/piston/git-tools/issues{/number}","pulls_url":"https://api.github.com/repos/piston/git-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/piston/git-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/piston/git-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piston/git-tools/labels{/name}","releases_url":"https://api.github.com/repos/piston/git-tools/releases{/id}","created_at":"2012-02-28T01:12:12Z","updated_at":"2014-06-23T19:57:19Z","pushed_at":"2014-06-23T18:49:04Z","git_url":"git://github.com/piston/git-tools.git","ssh_url":"git@github.com:piston/git-tools.git","clone_url":"https://github.com/piston/git-tools.git","svn_url":"https://github.com/piston/git-tools","homepage":"","size":490,"stargazers_count":2,"watchers_count":2,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/piston/git-tools/pulls/2"},"html":{"href":"https://github.com/piston/git-tools/pull/2"},"issue":{"href":"https://api.github.com/repos/piston/git-tools/issues/2"},"comments":{"href":"https://api.github.com/repos/piston/git-tools/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/piston/git-tools/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/piston/git-tools/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/piston/git-tools/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/piston/git-tools/statuses/f692d5909b27cfbfb70d386dae49c273c946908c"}}}}