jenkinsci / bitbucket-push-and-pull-request-plugin

Plugin for Jenkins v2.138.2 or later, that triggers job builds on Bitbucket's push and pull request events.
https://plugins.jenkins.io/bitbucket-push-and-pull-request
MIT License
46 stars 50 forks source link

Bitbucket Pull Request Link is broken #306

Closed alifiroozi80 closed 11 months ago

alifiroozi80 commented 1 year ago

Hello everyone As you know, there is an Environment Variable called BITBUCKET_PULL_REQUEST_LINK that returns the PR URL on Bitbucket. It returns the URL like this:

https://bitbucket.org/ORG/REPO/pullrequests/75

but, this is not the valid URL and bitbucket is going to return 404 on bitbucket

However, if you add - to the pullrequests, it's going to work:

https://bitbucket.org/ORG/REPO/pull-requests/75

Environment:

Jenkins: 2.414.2 Plugin: 2.8.4

### Tasks