jenkinsci / violation-comments-to-stash-plugin

Comments Bitbucket Server (or Stash) pull requests with static code analyzer findings.
https://plugins.jenkins.io/violation-comments-to-stash
MIT License
43 stars 16 forks source link

Could you extend documentation how to comment at https://bitbucket.org #16

Closed Arbuzov closed 8 years ago

Arbuzov commented 8 years ago

Try to use many ways but got nothing.

step([

        $class: 'ViolationsToBitbucketServerRecorder', 

            config: [

                bitbucketServerUrl: 'https://api.bitbucket.org/', 

                createCommentWithAllSingleFileComments: true, 

                createSingleFileComments: true, 

                projectKey: 'EVANTI', 

                repoSlug: 'cabinet-radugainternet-ru', 

                pullRequestId: "${pr}", 

                useUsernamePassword: true, 

                username: 'admin', 

                password: 'admin', 

                useUsernamePasswordCredentials: false, 

                violationConfigs: [

                    [ pattern: 'check_style.xml', reporter: 'CHECKSTYLE' ]

                ]

            ]

        ])

see at log

Error calling:

https://api.bitbucket.org/rest/api/1.0/projects/EVANTI/repos/cabinet-radugainternet-ru/pull-requests/683/changes?limit=999999
GET
 null

`

tomasbjerre commented 8 years ago

The plugin is for Bitbucket Server (or Stash). Bitbucket.org has completely different API:s and is not supported.

tomasbjerre commented 8 years ago

https://confluence.atlassian.com/bitbucketserver/bitbucket-rebrand-faq-779298912.html#BitbucketrebrandFAQ-Whyaren'ttheServerandCloudfeaturesthesame?