-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use a Personal Access Token? #216
Comments
I think personal access tokens are not supported yet. PR is always welcome |
@scaytrase I don't have experience creating/updating Jenkins plugins. |
Actually we need to take care of the following code Filling credentials select box: stashnotifier-plugin/src/main/java/org/jenkinsci/plugins/stashNotifier/StashNotifier.java Lines 604 to 630 in 323b477
Accessing credentials (basic auth is currently on the list) stashnotifier-plugin/src/main/java/org/jenkinsci/plugins/stashNotifier/StashNotifier.java Lines 853 to 892 in 323b477
There is bunch of code to utilize certificates as SSL auth, but it's declared non-working on #154 so I think it's not really relevant here |
@scaytrase are you able to share any environment configuration setup guidelines? I'm on Windows. Doesn't seem too complicated to make the changes. Just trying to find out how to test the changes. |
@rolandoldengarm At last you can just open PR and HPI would be built for you automagickally (and even would be distributed with incrementals repo) |
Personal Access Tokens seem to work fine out of the box when testing with echo '{"state":"SUCCESSFUL", "description":"Test description", "key":"1234asdf", "url":"http://jenkins:8081/"}' | curl -X POST -H "Authorization: Bearer <token>" -H "Content-Type: application/json" 'https://<stash_server>/rest/build-status/1.0/commits/<commit_hash>' -d @- -v |
Sure, it's just not supported for know here. So tell the labels |
The documentation states the following:
Therefore a personal access token can be used in the same way as a password in this plugin. @rolandoldengarm I suggest to try this and afterwards file a pull request with an updated readme.md that states that and how to use username/password credentials for passwords and personal access tokens. |
Implemented in #276 released as 1.24 |
See also: #24
It is now possible to authenticate against the Bitbucket API with a Personal Access Token.
How to do that using this plugin?
The text was updated successfully, but these errors were encountered: