{"action":"created","comment":{"url":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/comments/54479247","id":54479247,"diff_hunk":"@@ -0,0 +1,63 @@\n+package jenkins.automation.builders\n+\n+import javaposse.jobdsl.dsl.DslFactory\n+import javaposse.jobdsl.dsl.Job\n+import jenkins.automation.builders.BaseJobBuilder\n+\n+/**\n+ * This is a basic builder for Salesforce deployments using Force.com\n+ * migration tool\n+ * @param name Job Name\n+ * @param description Job description\n+ * @param emails List of emails for build notifications\n+ * @param antTaskName and target to execute\n+ * @param repoUrl Git repository to clone\n+ * @param antInstallerName Name of ant installer on the Jenkins server\n+ *\n+ * <p>\n+ *\n+ * @see <a href=\"https://github.com/imuchnik/jenkins-automation/blob/gh-pages/docs/examples.md#salesforce-job-builder\"\n+ *      target=\"_blank\">Salesforce job builder example</a>\n+\n+ * </p>\n+ */\n+class SalesforceAntJobBuilder {\n+\n+\n+    Job build(DslFactory factory) {\n+\n+        String name\n+        String description\n+        List emails\n+        String antTaskName\n+        String repoUrl\n+        String antInstallerName\n+\n+\n+        def job = new BaseJobBuilder(\n+                name: name,\n+                description: description,\n+                emails: emails\n+        ).build(factory);\n+\n+        job.with {\n+            logRotator {\n+                numToKeep(365)","path":"src/main/groovy/jenkins/automation/builders/SalesforceAntJobBuilder.groovy","position":45,"original_position":45,"commit_id":"69bce468d5e2769483599cc3079938f0844accff","original_commit_id":"69bce468d5e2769483599cc3079938f0844accff","user":{"login":"imuchnik","id":1176337,"avatar_url":"https://avatars.githubusercontent.com/u/1176337?v=3","gravatar_id":"","url":"https://api.github.com/users/imuchnik","html_url":"https://github.com/imuchnik","followers_url":"https://api.github.com/users/imuchnik/followers","following_url":"https://api.github.com/users/imuchnik/following{/other_user}","gists_url":"https://api.github.com/users/imuchnik/gists{/gist_id}","starred_url":"https://api.github.com/users/imuchnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imuchnik/subscriptions","organizations_url":"https://api.github.com/users/imuchnik/orgs","repos_url":"https://api.github.com/users/imuchnik/repos","events_url":"https://api.github.com/users/imuchnik/events{/privacy}","received_events_url":"https://api.github.com/users/imuchnik/received_events","type":"User","site_admin":false},"body":"Good catch. Will remove. \r\n","created_at":"2016-02-29T21:16:42Z","updated_at":"2016-02-29T21:16:42Z","html_url":"https://github.com/cfpb/jenkins-automation/pull/75#discussion_r54479247","pull_request_url":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/comments/54479247"},"html":{"href":"https://github.com/cfpb/jenkins-automation/pull/75#discussion_r54479247"},"pull_request":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/75","id":60919320,"html_url":"https://github.com/cfpb/jenkins-automation/pull/75","diff_url":"https://github.com/cfpb/jenkins-automation/pull/75.diff","patch_url":"https://github.com/cfpb/jenkins-automation/pull/75.patch","issue_url":"https://api.github.com/repos/cfpb/jenkins-automation/issues/75","number":75,"state":"open","locked":false,"title":"Bringing the Salesforce builder to the masses","user":{"login":"imuchnik","id":1176337,"avatar_url":"https://avatars.githubusercontent.com/u/1176337?v=3","gravatar_id":"","url":"https://api.github.com/users/imuchnik","html_url":"https://github.com/imuchnik","followers_url":"https://api.github.com/users/imuchnik/followers","following_url":"https://api.github.com/users/imuchnik/following{/other_user}","gists_url":"https://api.github.com/users/imuchnik/gists{/gist_id}","starred_url":"https://api.github.com/users/imuchnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imuchnik/subscriptions","organizations_url":"https://api.github.com/users/imuchnik/orgs","repos_url":"https://api.github.com/users/imuchnik/repos","events_url":"https://api.github.com/users/imuchnik/events{/privacy}","received_events_url":"https://api.github.com/users/imuchnik/received_events","type":"User","site_admin":false},"body":"This need not be private. Open sourcing...\r\n\r\n@marcesher @Scotchester @OrlandoSoto @vickumar1981 One or more of you kind gentleman, please review.","created_at":"2016-02-26T23:15:20Z","updated_at":"2016-02-29T21:16:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00c2b2287038ecb1921da52de888d52f2882e95f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/75/commits","review_comments_url":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/75/comments","review_comment_url":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cfpb/jenkins-automation/issues/75/comments","statuses_url":"https://api.github.com/repos/cfpb/jenkins-automation/statuses/69bce468d5e2769483599cc3079938f0844accff","head":{"label":"imuchnik:master","ref":"master","sha":"69bce468d5e2769483599cc3079938f0844accff","user":{"login":"imuchnik","id":1176337,"avatar_url":"https://avatars.githubusercontent.com/u/1176337?v=3","gravatar_id":"","url":"https://api.github.com/users/imuchnik","html_url":"https://github.com/imuchnik","followers_url":"https://api.github.com/users/imuchnik/followers","following_url":"https://api.github.com/users/imuchnik/following{/other_user}","gists_url":"https://api.github.com/users/imuchnik/gists{/gist_id}","starred_url":"https://api.github.com/users/imuchnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imuchnik/subscriptions","organizations_url":"https://api.github.com/users/imuchnik/orgs","repos_url":"https://api.github.com/users/imuchnik/repos","events_url":"https://api.github.com/users/imuchnik/events{/privacy}","received_events_url":"https://api.github.com/users/imuchnik/received_events","type":"User","site_admin":false},"repo":{"id":41438437,"name":"jenkins-automation","full_name":"imuchnik/jenkins-automation","owner":{"login":"imuchnik","id":1176337,"avatar_url":"https://avatars.githubusercontent.com/u/1176337?v=3","gravatar_id":"","url":"https://api.github.com/users/imuchnik","html_url":"https://github.com/imuchnik","followers_url":"https://api.github.com/users/imuchnik/followers","following_url":"https://api.github.com/users/imuchnik/following{/other_user}","gists_url":"https://api.github.com/users/imuchnik/gists{/gist_id}","starred_url":"https://api.github.com/users/imuchnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imuchnik/subscriptions","organizations_url":"https://api.github.com/users/imuchnik/orgs","repos_url":"https://api.github.com/users/imuchnik/repos","events_url":"https://api.github.com/users/imuchnik/events{/privacy}","received_events_url":"https://api.github.com/users/imuchnik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imuchnik/jenkins-automation","description":"Builders Docs","fork":true,"url":"https://api.github.com/repos/imuchnik/jenkins-automation","forks_url":"https://api.github.com/repos/imuchnik/jenkins-automation/forks","keys_url":"https://api.github.com/repos/imuchnik/jenkins-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imuchnik/jenkins-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imuchnik/jenkins-automation/teams","hooks_url":"https://api.github.com/repos/imuchnik/jenkins-automation/hooks","issue_events_url":"https://api.github.com/repos/imuchnik/jenkins-automation/issues/events{/number}","events_url":"https://api.github.com/repos/imuchnik/jenkins-automation/events","assignees_url":"https://api.github.com/repos/imuchnik/jenkins-automation/assignees{/user}","branches_url":"https://api.github.com/repos/imuchnik/jenkins-automation/branches{/branch}","tags_url":"https://api.github.com/repos/imuchnik/jenkins-automation/tags","blobs_url":"https://api.github.com/repos/imuchnik/jenkins-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imuchnik/jenkins-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imuchnik/jenkins-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/imuchnik/jenkins-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imuchnik/jenkins-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/imuchnik/jenkins-automation/languages","stargazers_url":"https://api.github.com/repos/imuchnik/jenkins-automation/stargazers","contributors_url":"https://api.github.com/repos/imuchnik/jenkins-automation/contributors","subscribers_url":"https://api.github.com/repos/imuchnik/jenkins-automation/subscribers","subscription_url":"https://api.github.com/repos/imuchnik/jenkins-automation/subscription","commits_url":"https://api.github.com/repos/imuchnik/jenkins-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/imuchnik/jenkins-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/imuchnik/jenkins-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/imuchnik/jenkins-automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/imuchnik/jenkins-automation/contents/{+path}","compare_url":"https://api.github.com/repos/imuchnik/jenkins-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imuchnik/jenkins-automation/merges","archive_url":"https://api.github.com/repos/imuchnik/jenkins-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imuchnik/jenkins-automation/downloads","issues_url":"https://api.github.com/repos/imuchnik/jenkins-automation/issues{/number}","pulls_url":"https://api.github.com/repos/imuchnik/jenkins-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/imuchnik/jenkins-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/imuchnik/jenkins-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imuchnik/jenkins-automation/labels{/name}","releases_url":"https://api.github.com/repos/imuchnik/jenkins-automation/releases{/id}","deployments_url":"https://api.github.com/repos/imuchnik/jenkins-automation/deployments","created_at":"2015-08-26T17:05:28Z","updated_at":"2016-01-13T19:21:49Z","pushed_at":"2016-02-26T23:12:03Z","git_url":"git://github.com/imuchnik/jenkins-automation.git","ssh_url":"git@github.com:imuchnik/jenkins-automation.git","clone_url":"https://github.com/imuchnik/jenkins-automation.git","svn_url":"https://github.com/imuchnik/jenkins-automation","homepage":"http://cfpb.github.io/jenkins-automation/","size":1172,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cfpb:master","ref":"master","sha":"4e31e3629db61d8d62415aed493ddab95a5a2e62","user":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"repo":{"id":38404799,"name":"jenkins-automation","full_name":"cfpb/jenkins-automation","owner":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cfpb/jenkins-automation","description":"Helpers for automating Jenkins via Groovy code—primarily job builders and utilities.","fork":false,"url":"https://api.github.com/repos/cfpb/jenkins-automation","forks_url":"https://api.github.com/repos/cfpb/jenkins-automation/forks","keys_url":"https://api.github.com/repos/cfpb/jenkins-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfpb/jenkins-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfpb/jenkins-automation/teams","hooks_url":"https://api.github.com/repos/cfpb/jenkins-automation/hooks","issue_events_url":"https://api.github.com/repos/cfpb/jenkins-automation/issues/events{/number}","events_url":"https://api.github.com/repos/cfpb/jenkins-automation/events","assignees_url":"https://api.github.com/repos/cfpb/jenkins-automation/assignees{/user}","branches_url":"https://api.github.com/repos/cfpb/jenkins-automation/branches{/branch}","tags_url":"https://api.github.com/repos/cfpb/jenkins-automation/tags","blobs_url":"https://api.github.com/repos/cfpb/jenkins-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfpb/jenkins-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfpb/jenkins-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfpb/jenkins-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfpb/jenkins-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/cfpb/jenkins-automation/languages","stargazers_url":"https://api.github.com/repos/cfpb/jenkins-automation/stargazers","contributors_url":"https://api.github.com/repos/cfpb/jenkins-automation/contributors","subscribers_url":"https://api.github.com/repos/cfpb/jenkins-automation/subscribers","subscription_url":"https://api.github.com/repos/cfpb/jenkins-automation/subscription","commits_url":"https://api.github.com/repos/cfpb/jenkins-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfpb/jenkins-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfpb/jenkins-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfpb/jenkins-automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/cfpb/jenkins-automation/contents/{+path}","compare_url":"https://api.github.com/repos/cfpb/jenkins-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfpb/jenkins-automation/merges","archive_url":"https://api.github.com/repos/cfpb/jenkins-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfpb/jenkins-automation/downloads","issues_url":"https://api.github.com/repos/cfpb/jenkins-automation/issues{/number}","pulls_url":"https://api.github.com/repos/cfpb/jenkins-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/cfpb/jenkins-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/cfpb/jenkins-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfpb/jenkins-automation/labels{/name}","releases_url":"https://api.github.com/repos/cfpb/jenkins-automation/releases{/id}","deployments_url":"https://api.github.com/repos/cfpb/jenkins-automation/deployments","created_at":"2015-07-02T01:42:38Z","updated_at":"2016-02-03T20:30:00Z","pushed_at":"2016-02-26T23:15:20Z","git_url":"git://github.com/cfpb/jenkins-automation.git","ssh_url":"git@github.com:cfpb/jenkins-automation.git","clone_url":"https://github.com/cfpb/jenkins-automation.git","svn_url":"https://github.com/cfpb/jenkins-automation","homepage":"","size":1186,"stargazers_count":4,"watchers_count":4,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"open_issues_count":3,"forks":15,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/75"},"html":{"href":"https://github.com/cfpb/jenkins-automation/pull/75"},"issue":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/issues/75"},"comments":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/cfpb/jenkins-automation/statuses/69bce468d5e2769483599cc3079938f0844accff"}}}}