{"action":"created","comment":{"url":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/comments/69425090","id":69425090,"diff_hunk":"@@ -280,6 +283,25 @@ public static String toFixedLength(String str, int len, char fillChar) {\n \t\treturn result.substring(result.length() - len);\n \t}\n \t\n+\tpublic static void generateFailBackupPackage(Context context){\n+\t\tif(context.isWindows()) return;\n+\t\tString backupFileName = \"\";\n+\t\tCalendar cal = Calendar.getInstance();\n+\t\tint year = cal.get(Calendar.YEAR);  \n+        int month = cal.get(Calendar.MONTH) + 1;\n+        int day = cal.get(Calendar.DAY_OF_MONTH);  \n+        int hour = cal.get(Calendar.HOUR);  \n+        int minute = cal.get(Calendar.MINUTE);  \n+        int second = cal.get(Calendar.SECOND);\n+        String curTimestamp = year + \".\" + month + \".\" + day + \"_\" + hour + \".\" + minute + \".\" + second;\n+        String build = context.getTestBuild();\n+        String bit = context.getVersion();\n+        Integer tastId = context.getTaskId();\n+        \n+        backupFileName = \"shell_result_\" + build + \"_\" + bit + \"_\" + tastId + \"_\" + curTimestamp + \"tar.gz\";\n+        LocalInvoker.exec(\"tar zvcf \" + Constants.DIR_WORKS_ROOT + \"/\" + backupFileName + \" conf log run.log \" , false, false);","path":"CTP/shell/src/com/navercorp/cubridqa/shell/common/CommonUtils.java","position":37,"original_position":37,"commit_id":"8e84042a52745ce18532a381672e60ad292e97ed","original_commit_id":"8e84042a52745ce18532a381672e60ad292e97ed","user":{"login":"fanzaiqiang","id":17305252,"avatar_url":"https://avatars.githubusercontent.com/u/17305252?v=3","gravatar_id":"","url":"https://api.github.com/users/fanzaiqiang","html_url":"https://github.com/fanzaiqiang","followers_url":"https://api.github.com/users/fanzaiqiang/followers","following_url":"https://api.github.com/users/fanzaiqiang/following{/other_user}","gists_url":"https://api.github.com/users/fanzaiqiang/gists{/gist_id}","starred_url":"https://api.github.com/users/fanzaiqiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanzaiqiang/subscriptions","organizations_url":"https://api.github.com/users/fanzaiqiang/orgs","repos_url":"https://api.github.com/users/fanzaiqiang/repos","events_url":"https://api.github.com/users/fanzaiqiang/events{/privacy}","received_events_url":"https://api.github.com/users/fanzaiqiang/received_events","type":"User","site_admin":false},"body":"Please package to CTP_HOME/result/shell/ directory.","created_at":"2016-07-04T08:36:02Z","updated_at":"2016-07-04T08:36:02Z","html_url":"https://github.com/CUBRID/cubrid-testtools/pull/62#discussion_r69425090","pull_request_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/comments/69425090"},"html":{"href":"https://github.com/CUBRID/cubrid-testtools/pull/62#discussion_r69425090"},"pull_request":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/62","id":75941997,"html_url":"https://github.com/CUBRID/cubrid-testtools/pull/62","diff_url":"https://github.com/CUBRID/cubrid-testtools/pull/62.diff","patch_url":"https://github.com/CUBRID/cubrid-testtools/pull/62.patch","issue_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/issues/62","number":62,"state":"open","locked":false,"title":"[CUBRIDQA-40] enhance continue mode for shell tool","user":{"login":"supler","id":17423117,"avatar_url":"https://avatars.githubusercontent.com/u/17423117?v=3","gravatar_id":"","url":"https://api.github.com/users/supler","html_url":"https://github.com/supler","followers_url":"https://api.github.com/users/supler/followers","following_url":"https://api.github.com/users/supler/following{/other_user}","gists_url":"https://api.github.com/users/supler/gists{/gist_id}","starred_url":"https://api.github.com/users/supler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supler/subscriptions","organizations_url":"https://api.github.com/users/supler/orgs","repos_url":"https://api.github.com/users/supler/repos","events_url":"https://api.github.com/users/supler/events{/privacy}","received_events_url":"https://api.github.com/users/supler/received_events","type":"User","site_admin":false},"body":"@fanzaiqiang \r\n\r\nI add one method to judge if it needs continue testing, please review it. thanks","created_at":"2016-07-01T08:05:51Z","updated_at":"2016-07-04T08:36:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26861bfa8d15bb5e7e4dbbf5b374840cd1aeafe6","assignee":{"login":"fanzaiqiang","id":17305252,"avatar_url":"https://avatars.githubusercontent.com/u/17305252?v=3","gravatar_id":"","url":"https://api.github.com/users/fanzaiqiang","html_url":"https://github.com/fanzaiqiang","followers_url":"https://api.github.com/users/fanzaiqiang/followers","following_url":"https://api.github.com/users/fanzaiqiang/following{/other_user}","gists_url":"https://api.github.com/users/fanzaiqiang/gists{/gist_id}","starred_url":"https://api.github.com/users/fanzaiqiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanzaiqiang/subscriptions","organizations_url":"https://api.github.com/users/fanzaiqiang/orgs","repos_url":"https://api.github.com/users/fanzaiqiang/repos","events_url":"https://api.github.com/users/fanzaiqiang/events{/privacy}","received_events_url":"https://api.github.com/users/fanzaiqiang/received_events","type":"User","site_admin":false},"assignees":[{"login":"fanzaiqiang","id":17305252,"avatar_url":"https://avatars.githubusercontent.com/u/17305252?v=3","gravatar_id":"","url":"https://api.github.com/users/fanzaiqiang","html_url":"https://github.com/fanzaiqiang","followers_url":"https://api.github.com/users/fanzaiqiang/followers","following_url":"https://api.github.com/users/fanzaiqiang/following{/other_user}","gists_url":"https://api.github.com/users/fanzaiqiang/gists{/gist_id}","starred_url":"https://api.github.com/users/fanzaiqiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanzaiqiang/subscriptions","organizations_url":"https://api.github.com/users/fanzaiqiang/orgs","repos_url":"https://api.github.com/users/fanzaiqiang/repos","events_url":"https://api.github.com/users/fanzaiqiang/events{/privacy}","received_events_url":"https://api.github.com/users/fanzaiqiang/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/62/commits","review_comments_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/62/comments","review_comment_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/issues/62/comments","statuses_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/statuses/8e84042a52745ce18532a381672e60ad292e97ed","head":{"label":"supler:enhance-shell-continue-mode","ref":"enhance-shell-continue-mode","sha":"8e84042a52745ce18532a381672e60ad292e97ed","user":{"login":"supler","id":17423117,"avatar_url":"https://avatars.githubusercontent.com/u/17423117?v=3","gravatar_id":"","url":"https://api.github.com/users/supler","html_url":"https://github.com/supler","followers_url":"https://api.github.com/users/supler/followers","following_url":"https://api.github.com/users/supler/following{/other_user}","gists_url":"https://api.github.com/users/supler/gists{/gist_id}","starred_url":"https://api.github.com/users/supler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supler/subscriptions","organizations_url":"https://api.github.com/users/supler/orgs","repos_url":"https://api.github.com/users/supler/repos","events_url":"https://api.github.com/users/supler/events{/privacy}","received_events_url":"https://api.github.com/users/supler/received_events","type":"User","site_admin":false},"repo":{"id":54935763,"name":"cubrid-testtools","full_name":"supler/cubrid-testtools","owner":{"login":"supler","id":17423117,"avatar_url":"https://avatars.githubusercontent.com/u/17423117?v=3","gravatar_id":"","url":"https://api.github.com/users/supler","html_url":"https://github.com/supler","followers_url":"https://api.github.com/users/supler/followers","following_url":"https://api.github.com/users/supler/following{/other_user}","gists_url":"https://api.github.com/users/supler/gists{/gist_id}","starred_url":"https://api.github.com/users/supler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supler/subscriptions","organizations_url":"https://api.github.com/users/supler/orgs","repos_url":"https://api.github.com/users/supler/repos","events_url":"https://api.github.com/users/supler/events{/privacy}","received_events_url":"https://api.github.com/users/supler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/supler/cubrid-testtools","description":"Scripts and utilities that automated testing for CUBRID QA","fork":true,"url":"https://api.github.com/repos/supler/cubrid-testtools","forks_url":"https://api.github.com/repos/supler/cubrid-testtools/forks","keys_url":"https://api.github.com/repos/supler/cubrid-testtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/supler/cubrid-testtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/supler/cubrid-testtools/teams","hooks_url":"https://api.github.com/repos/supler/cubrid-testtools/hooks","issue_events_url":"https://api.github.com/repos/supler/cubrid-testtools/issues/events{/number}","events_url":"https://api.github.com/repos/supler/cubrid-testtools/events","assignees_url":"https://api.github.com/repos/supler/cubrid-testtools/assignees{/user}","branches_url":"https://api.github.com/repos/supler/cubrid-testtools/branches{/branch}","tags_url":"https://api.github.com/repos/supler/cubrid-testtools/tags","blobs_url":"https://api.github.com/repos/supler/cubrid-testtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/supler/cubrid-testtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/supler/cubrid-testtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/supler/cubrid-testtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/supler/cubrid-testtools/statuses/{sha}","languages_url":"https://api.github.com/repos/supler/cubrid-testtools/languages","stargazers_url":"https://api.github.com/repos/supler/cubrid-testtools/stargazers","contributors_url":"https://api.github.com/repos/supler/cubrid-testtools/contributors","subscribers_url":"https://api.github.com/repos/supler/cubrid-testtools/subscribers","subscription_url":"https://api.github.com/repos/supler/cubrid-testtools/subscription","commits_url":"https://api.github.com/repos/supler/cubrid-testtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/supler/cubrid-testtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/supler/cubrid-testtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/supler/cubrid-testtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/supler/cubrid-testtools/contents/{+path}","compare_url":"https://api.github.com/repos/supler/cubrid-testtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/supler/cubrid-testtools/merges","archive_url":"https://api.github.com/repos/supler/cubrid-testtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/supler/cubrid-testtools/downloads","issues_url":"https://api.github.com/repos/supler/cubrid-testtools/issues{/number}","pulls_url":"https://api.github.com/repos/supler/cubrid-testtools/pulls{/number}","milestones_url":"https://api.github.com/repos/supler/cubrid-testtools/milestones{/number}","notifications_url":"https://api.github.com/repos/supler/cubrid-testtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/supler/cubrid-testtools/labels{/name}","releases_url":"https://api.github.com/repos/supler/cubrid-testtools/releases{/id}","deployments_url":"https://api.github.com/repos/supler/cubrid-testtools/deployments","created_at":"2016-03-29T01:21:59Z","updated_at":"2016-03-29T01:22:03Z","pushed_at":"2016-07-01T11:47:42Z","git_url":"git://github.com/supler/cubrid-testtools.git","ssh_url":"git@github.com:supler/cubrid-testtools.git","clone_url":"https://github.com/supler/cubrid-testtools.git","svn_url":"https://github.com/supler/cubrid-testtools","homepage":null,"size":13216,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CUBRID:develop_shell","ref":"develop_shell","sha":"3d1a1eeca6113902f0c0737ba02cccaa5465c81b","user":{"login":"CUBRID","id":358322,"avatar_url":"https://avatars.githubusercontent.com/u/358322?v=3","gravatar_id":"","url":"https://api.github.com/users/CUBRID","html_url":"https://github.com/CUBRID","followers_url":"https://api.github.com/users/CUBRID/followers","following_url":"https://api.github.com/users/CUBRID/following{/other_user}","gists_url":"https://api.github.com/users/CUBRID/gists{/gist_id}","starred_url":"https://api.github.com/users/CUBRID/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUBRID/subscriptions","organizations_url":"https://api.github.com/users/CUBRID/orgs","repos_url":"https://api.github.com/users/CUBRID/repos","events_url":"https://api.github.com/users/CUBRID/events{/privacy}","received_events_url":"https://api.github.com/users/CUBRID/received_events","type":"Organization","site_admin":false},"repo":{"id":52327283,"name":"cubrid-testtools","full_name":"CUBRID/cubrid-testtools","owner":{"login":"CUBRID","id":358322,"avatar_url":"https://avatars.githubusercontent.com/u/358322?v=3","gravatar_id":"","url":"https://api.github.com/users/CUBRID","html_url":"https://github.com/CUBRID","followers_url":"https://api.github.com/users/CUBRID/followers","following_url":"https://api.github.com/users/CUBRID/following{/other_user}","gists_url":"https://api.github.com/users/CUBRID/gists{/gist_id}","starred_url":"https://api.github.com/users/CUBRID/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CUBRID/subscriptions","organizations_url":"https://api.github.com/users/CUBRID/orgs","repos_url":"https://api.github.com/users/CUBRID/repos","events_url":"https://api.github.com/users/CUBRID/events{/privacy}","received_events_url":"https://api.github.com/users/CUBRID/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CUBRID/cubrid-testtools","description":"Scripts and utilities that automated testing for CUBRID QA","fork":false,"url":"https://api.github.com/repos/CUBRID/cubrid-testtools","forks_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/forks","keys_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/teams","hooks_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/hooks","issue_events_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/issues/events{/number}","events_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/events","assignees_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/assignees{/user}","branches_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/branches{/branch}","tags_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/tags","blobs_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/statuses/{sha}","languages_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/languages","stargazers_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/stargazers","contributors_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/contributors","subscribers_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/subscribers","subscription_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/subscription","commits_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/contents/{+path}","compare_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/merges","archive_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/downloads","issues_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/issues{/number}","pulls_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls{/number}","milestones_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/milestones{/number}","notifications_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/labels{/name}","releases_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/releases{/id}","deployments_url":"https://api.github.com/repos/CUBRID/cubrid-testtools/deployments","created_at":"2016-02-23T03:35:11Z","updated_at":"2016-03-28T09:01:05Z","pushed_at":"2016-07-01T11:47:43Z","git_url":"git://github.com/CUBRID/cubrid-testtools.git","ssh_url":"git@github.com:CUBRID/cubrid-testtools.git","clone_url":"https://github.com/CUBRID/cubrid-testtools.git","svn_url":"https://github.com/CUBRID/cubrid-testtools","homepage":null,"size":19474,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/62"},"html":{"href":"https://github.com/CUBRID/cubrid-testtools/pull/62"},"issue":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/issues/62"},"comments":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/CUBRID/cubrid-testtools/statuses/8e84042a52745ce18532a381672e60ad292e97ed"}}}}
{"actor":{"display_login":"fanzaiqiang"}}