-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-74970] Advise if Bitbucket Server rejects build status
If this plugin posts a build status to Bitbucket Server or Data Center, but Bitbucket responds with HTTP status 401 (Unauthorized) or 403 (Forbidden), then log extra information to help users grant Jenkins the required permission on the repository: * The permission that is needed: REPO_READ. * The Bitbucket user name. Currently, this comes from the "X-AUSERNAME" response header field. * The repository to which the request was sent. * The project or user that owns the repository. Because BitbucketServerAPIClient does not have direct access to a TaskListener, it adds this information to the message of the BitbucketRequestException, and the caller then logs it from there. The behaviour on Bitbucket Cloud is unchanged.
- Loading branch information
1 parent
e2da34a
commit 26ef0dd
Showing
3 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters