{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/comments/34438043","id":34438043,"diff_hunk":"@@ -156,7 +163,8 @@ public void writeLogTo(XMLOutput out) throws IOException {\n \n         @Override\n         public boolean isApplicable(Item item) {\n-            return item instanceof AbstractProject;\n+            return item instanceof Job && SCMTriggerItem.SCMTriggerItems.asSCMTriggerItem(item) != null\n+                    && item instanceof ParameterizedJobMixIn.ParameterizedJob;","path":"src/main/java/com/cloudbees/jenkins/plugins/BitBucketTrigger.java","position":67,"original_position":67,"commit_id":"6d1849d2d16e77f462e257f4065fc93fb16c8532","original_commit_id":"6d1849d2d16e77f462e257f4065fc93fb16c8532","user":{"login":"oleg-nenashev","id":3000480,"avatar_url":"https://avatars.githubusercontent.com/u/3000480?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"body":"I doubt the last condition is required. Non-parameterized jobs can be triggered as well, but they may be unable to access the metadata","created_at":"2015-07-13T07:23:04Z","updated_at":"2015-07-13T07:23:04Z","html_url":"https://github.com/jenkinsci/bitbucket-plugin/pull/18#discussion_r34438043","pull_request_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/comments/34438043"},"html":{"href":"https://github.com/jenkinsci/bitbucket-plugin/pull/18#discussion_r34438043"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/18","id":39683300,"html_url":"https://github.com/jenkinsci/bitbucket-plugin/pull/18","diff_url":"https://github.com/jenkinsci/bitbucket-plugin/pull/18.diff","patch_url":"https://github.com/jenkinsci/bitbucket-plugin/pull/18.patch","issue_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/issues/18","number":18,"state":"open","locked":false,"title":"[FIXED JENKINS-28882] Workflow support for BitBucket trigger","user":{"login":"fbelzunc","id":3898648,"avatar_url":"https://avatars.githubusercontent.com/u/3898648?v=3","gravatar_id":"","url":"https://api.github.com/users/fbelzunc","html_url":"https://github.com/fbelzunc","followers_url":"https://api.github.com/users/fbelzunc/followers","following_url":"https://api.github.com/users/fbelzunc/following{/other_user}","gists_url":"https://api.github.com/users/fbelzunc/gists{/gist_id}","starred_url":"https://api.github.com/users/fbelzunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbelzunc/subscriptions","organizations_url":"https://api.github.com/users/fbelzunc/orgs","repos_url":"https://api.github.com/users/fbelzunc/repos","events_url":"https://api.github.com/users/fbelzunc/events{/privacy}","received_events_url":"https://api.github.com/users/fbelzunc/received_events","type":"User","site_admin":false},"body":"BitBucketTrigger should be a Trigger<Job> so as to support non-AbstractProject including WorkflowJob.","created_at":"2015-07-10T13:19:21Z","updated_at":"2015-07-13T07:23:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7221db73b27997cafae89eb97e482c2eaa74e7ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/18/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/18/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/issues/18/comments","statuses_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/statuses/6d1849d2d16e77f462e257f4065fc93fb16c8532","head":{"label":"fbelzunc:JENKINS-28882","ref":"JENKINS-28882","sha":"6d1849d2d16e77f462e257f4065fc93fb16c8532","user":{"login":"fbelzunc","id":3898648,"avatar_url":"https://avatars.githubusercontent.com/u/3898648?v=3","gravatar_id":"","url":"https://api.github.com/users/fbelzunc","html_url":"https://github.com/fbelzunc","followers_url":"https://api.github.com/users/fbelzunc/followers","following_url":"https://api.github.com/users/fbelzunc/following{/other_user}","gists_url":"https://api.github.com/users/fbelzunc/gists{/gist_id}","starred_url":"https://api.github.com/users/fbelzunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbelzunc/subscriptions","organizations_url":"https://api.github.com/users/fbelzunc/orgs","repos_url":"https://api.github.com/users/fbelzunc/repos","events_url":"https://api.github.com/users/fbelzunc/events{/privacy}","received_events_url":"https://api.github.com/users/fbelzunc/received_events","type":"User","site_admin":false},"repo":{"id":28810614,"name":"bitbucket-plugin","full_name":"fbelzunc/bitbucket-plugin","owner":{"login":"fbelzunc","id":3898648,"avatar_url":"https://avatars.githubusercontent.com/u/3898648?v=3","gravatar_id":"","url":"https://api.github.com/users/fbelzunc","html_url":"https://github.com/fbelzunc","followers_url":"https://api.github.com/users/fbelzunc/followers","following_url":"https://api.github.com/users/fbelzunc/following{/other_user}","gists_url":"https://api.github.com/users/fbelzunc/gists{/gist_id}","starred_url":"https://api.github.com/users/fbelzunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbelzunc/subscriptions","organizations_url":"https://api.github.com/users/fbelzunc/orgs","repos_url":"https://api.github.com/users/fbelzunc/repos","events_url":"https://api.github.com/users/fbelzunc/events{/privacy}","received_events_url":"https://api.github.com/users/fbelzunc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fbelzunc/bitbucket-plugin","description":"","fork":true,"url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin","forks_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/forks","keys_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/teams","hooks_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/hooks","issue_events_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/events","assignees_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/tags","blobs_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/languages","stargazers_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/stargazers","contributors_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/contributors","subscribers_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/subscribers","subscription_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/subscription","commits_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/merges","archive_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/downloads","issues_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/labels{/name}","releases_url":"https://api.github.com/repos/fbelzunc/bitbucket-plugin/releases{/id}","created_at":"2015-01-05T11:52:43Z","updated_at":"2015-01-19T14:35:17Z","pushed_at":"2015-07-13T07:11:40Z","git_url":"git://github.com/fbelzunc/bitbucket-plugin.git","ssh_url":"git@github.com:fbelzunc/bitbucket-plugin.git","clone_url":"https://github.com/fbelzunc/bitbucket-plugin.git","svn_url":"https://github.com/fbelzunc/bitbucket-plugin","homepage":"","size":209,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"97c96200bc5b60c13181b47fd47d0ff76d6b28d6","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":13719049,"name":"bitbucket-plugin","full_name":"jenkinsci/bitbucket-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/bitbucket-plugin","description":"project","fork":false,"url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin","forks_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/releases{/id}","created_at":"2013-10-20T12:56:57Z","updated_at":"2015-07-08T13:25:46Z","pushed_at":"2015-07-13T07:11:40Z","git_url":"git://github.com/jenkinsci/bitbucket-plugin.git","ssh_url":"git@github.com:jenkinsci/bitbucket-plugin.git","clone_url":"https://github.com/jenkinsci/bitbucket-plugin.git","svn_url":"https://github.com/jenkinsci/bitbucket-plugin","homepage":"","size":325,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/18"},"html":{"href":"https://github.com/jenkinsci/bitbucket-plugin/pull/18"},"issue":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/issues/18"},"comments":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/bitbucket-plugin/statuses/6d1849d2d16e77f462e257f4065fc93fb16c8532"}}}}