{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/comments/23037219","id":23037219,"diff_hunk":"@@ -0,0 +1,60 @@\n+/*\n+ * The MIT License\n+ *\n+ * Copyright (c) 2013-2014, CloudBees, Inc.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+package hudson.plugins.copyartifact.testutils;\n+\n+import hudson.plugins.copyartifact.BuildSelector;\n+import hudson.plugins.copyartifact.CopyArtifact;\n+\n+/**\n+ * @author <a href=\"mailto:tom.fennelly@gmail.com\">tom.fennelly@gmail.com</a>\n+ */\n+public class CopyArtifactUtil {\n+\n+    private CopyArtifactUtil() {\n+    }\n+\n+    public static CopyArtifact createCopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String target,\n+            boolean flatten, boolean optional) {\n+        return createCopyArtifact(projectName, parameters, selector, filter, null, target, flatten, optional, false);\n+    }\n+\n+    public static CopyArtifact createCopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String target,\n+            boolean flatten, boolean optional, boolean fingerprintArtifacts) {\n+        return createCopyArtifact(projectName, parameters, selector, filter, null, target, flatten, optional, fingerprintArtifacts);\n+    }\n+\n+    public static CopyArtifact createCopyArtifact(String projectName, String parameters, BuildSelector selector, String filter, String excludes, String target,\n+                        boolean flatten, boolean optional, boolean fingerprintArtifacts) {","path":"src/test/java/hudson/plugins/copyartifact/testutils/CopyArtifactUtil.java","position":48,"original_position":48,"commit_id":"58c917c6276a4a6a797a639f12eeed20506459ca","original_commit_id":"58c917c6276a4a6a797a639f12eeed20506459ca","user":{"login":"jglick","id":154109,"avatar_url":"https://avatars.githubusercontent.com/u/154109?v=3","gravatar_id":"","url":"https://api.github.com/users/jglick","html_url":"https://github.com/jglick","followers_url":"https://api.github.com/users/jglick/followers","following_url":"https://api.github.com/users/jglick/following{/other_user}","gists_url":"https://api.github.com/users/jglick/gists{/gist_id}","starred_url":"https://api.github.com/users/jglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jglick/subscriptions","organizations_url":"https://api.github.com/users/jglick/orgs","repos_url":"https://api.github.com/users/jglick/repos","events_url":"https://api.github.com/users/jglick/events{/privacy}","received_events_url":"https://api.github.com/users/jglick/received_events","type":"User","site_admin":false},"body":"OK for purposes of creating a minimal diff, though in the long run I would expect this class to be deleted (inlined), with calls to default field values deleted.","created_at":"2015-01-15T19:42:44Z","updated_at":"2015-01-15T19:42:44Z","html_url":"https://github.com/jenkinsci/copyartifact-plugin/pull/55#discussion_r23037219","pull_request_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/comments/23037219"},"html":{"href":"https://github.com/jenkinsci/copyartifact-plugin/pull/55#discussion_r23037219"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/55","id":27263577,"html_url":"https://github.com/jenkinsci/copyartifact-plugin/pull/55","diff_url":"https://github.com/jenkinsci/copyartifact-plugin/pull/55.diff","patch_url":"https://github.com/jenkinsci/copyartifact-plugin/pull/55.patch","issue_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/issues/55","number":55,"state":"open","locked":false,"title":"[WIP] [FIXED JENKINS-24887] CopyArtifact to implement workflow SimpleBuildStep","user":{"login":"tfennelly","id":429311,"avatar_url":"https://avatars.githubusercontent.com/u/429311?v=3","gravatar_id":"","url":"https://api.github.com/users/tfennelly","html_url":"https://github.com/tfennelly","followers_url":"https://api.github.com/users/tfennelly/followers","following_url":"https://api.github.com/users/tfennelly/following{/other_user}","gists_url":"https://api.github.com/users/tfennelly/gists{/gist_id}","starred_url":"https://api.github.com/users/tfennelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfennelly/subscriptions","organizations_url":"https://api.github.com/users/tfennelly/orgs","repos_url":"https://api.github.com/users/tfennelly/repos","events_url":"https://api.github.com/users/tfennelly/events{/privacy}","received_events_url":"https://api.github.com/users/tfennelly/received_events","type":"User","site_admin":false},"body":"__THIS IS A WORK IN PROGRESS__\r\n\r\nContains first set of changes aimed at making the CopyArtifact build step usable within a workflow. Supersedes #43 and implements [JENKINS-24887](https://issues.jenkins-ci.org/browse/JENKINS-24887).\r\n\r\n* Existing tests all pass.\r\n* There are a number of __TODO__ question marks that I think need to be resolved.\r\n* Created a workflow test in [workflow-plugin/aggregator](https://github.com/jenkinsci/workflow-plugin/tree/master/aggregator) (as with the scm, mailer and other plugins). See https://github.com/jenkinsci/workflow-plugin/pull/36","created_at":"2015-01-13T11:12:17Z","updated_at":"2015-01-15T19:42:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"555a8ac5b3df648fb158a5695310eb8b00a3b344","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/55/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/55/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/issues/55/comments","statuses_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/statuses/58c917c6276a4a6a797a639f12eeed20506459ca","head":{"label":"tfennelly:BuildStep-Job-v2","ref":"BuildStep-Job-v2","sha":"58c917c6276a4a6a797a639f12eeed20506459ca","user":{"login":"tfennelly","id":429311,"avatar_url":"https://avatars.githubusercontent.com/u/429311?v=3","gravatar_id":"","url":"https://api.github.com/users/tfennelly","html_url":"https://github.com/tfennelly","followers_url":"https://api.github.com/users/tfennelly/followers","following_url":"https://api.github.com/users/tfennelly/following{/other_user}","gists_url":"https://api.github.com/users/tfennelly/gists{/gist_id}","starred_url":"https://api.github.com/users/tfennelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfennelly/subscriptions","organizations_url":"https://api.github.com/users/tfennelly/orgs","repos_url":"https://api.github.com/users/tfennelly/repos","events_url":"https://api.github.com/users/tfennelly/events{/privacy}","received_events_url":"https://api.github.com/users/tfennelly/received_events","type":"User","site_admin":false},"repo":{"id":23318166,"name":"copyartifact-plugin","full_name":"tfennelly/copyartifact-plugin","owner":{"login":"tfennelly","id":429311,"avatar_url":"https://avatars.githubusercontent.com/u/429311?v=3","gravatar_id":"","url":"https://api.github.com/users/tfennelly","html_url":"https://github.com/tfennelly","followers_url":"https://api.github.com/users/tfennelly/followers","following_url":"https://api.github.com/users/tfennelly/following{/other_user}","gists_url":"https://api.github.com/users/tfennelly/gists{/gist_id}","starred_url":"https://api.github.com/users/tfennelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfennelly/subscriptions","organizations_url":"https://api.github.com/users/tfennelly/orgs","repos_url":"https://api.github.com/users/tfennelly/repos","events_url":"https://api.github.com/users/tfennelly/events{/privacy}","received_events_url":"https://api.github.com/users/tfennelly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tfennelly/copyartifact-plugin","description":"Jenkins copyartifact plugin","fork":true,"url":"https://api.github.com/repos/tfennelly/copyartifact-plugin","forks_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/forks","keys_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/teams","hooks_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/hooks","issue_events_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/events","assignees_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/tags","blobs_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/languages","stargazers_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/stargazers","contributors_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/contributors","subscribers_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/subscribers","subscription_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/subscription","commits_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/issues/comments/{number}","contents_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/merges","archive_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/downloads","issues_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/labels{/name}","releases_url":"https://api.github.com/repos/tfennelly/copyartifact-plugin/releases{/id}","created_at":"2014-08-25T15:16:37Z","updated_at":"2014-06-29T23:31:24Z","pushed_at":"2015-01-15T08:21:07Z","git_url":"git://github.com/tfennelly/copyartifact-plugin.git","ssh_url":"git@github.com:tfennelly/copyartifact-plugin.git","clone_url":"https://github.com/tfennelly/copyartifact-plugin.git","svn_url":"https://github.com/tfennelly/copyartifact-plugin","homepage":"http://jenkins-ci.org/","size":595,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"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":"jenkinsci:master","ref":"master","sha":"0f9ce8306207f82c8c5030f23e88eb3d3345bbcd","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":1163489,"name":"copyartifact-plugin","full_name":"jenkinsci/copyartifact-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/copyartifact-plugin","description":"Jenkins copyartifact plugin","fork":false,"url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin","forks_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/issues/comments/{number}","contents_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/releases{/id}","created_at":"2010-12-13T05:29:41Z","updated_at":"2014-11-04T23:54:42Z","pushed_at":"2014-10-20T13:41:41Z","git_url":"git://github.com/jenkinsci/copyartifact-plugin.git","ssh_url":"git@github.com:jenkinsci/copyartifact-plugin.git","clone_url":"https://github.com/jenkinsci/copyartifact-plugin.git","svn_url":"https://github.com/jenkinsci/copyartifact-plugin","homepage":"http://jenkins-ci.org/","size":1927,"stargazers_count":22,"watchers_count":22,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":9,"forks":49,"open_issues":9,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/55"},"html":{"href":"https://github.com/jenkinsci/copyartifact-plugin/pull/55"},"issue":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/issues/55"},"comments":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/copyartifact-plugin/statuses/58c917c6276a4a6a797a639f12eeed20506459ca"}}}}