pull-request-notifier-for-bitbucket
pull-request-notifier-for-bitbucket copied to clipboard
NTLM support
- Plugin version used: I don't know (I can't find this in the UI of the plugin and I'm not an administrator)
- Bitbucket Server version used: 5.16.0
I am trying to notify TFS of a successful merge in Bitbucket in order to kick off a CI build but our TFS instance uses Windows Authentication so the notification always gets a http 401 response. I don't have sufficient access to upload my own plugin to a Bitbucket server to develop a PR. I want the plugin to send the equivalent of:
curl --ntlm -u user:pass http://some-tfs-rest-webapi-endpoint
I imagine a "Use NTLM" checkbox next to the user name and password inputs in the plugin's UI.
You can run the plugin locally if you want to develop a PR: https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/blob/master/CONTRIBUTING.md
Notes:
- https://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html
- https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/blob/master/src/main/java/se/bjurr/prnfb/http/UrlInvoker.java
@tomasbjerre, Do I need to rerun atlas-debug after every change or does bitbucket reimport the plugin automatically each time I change it?
Thanks.
Not sure. If I remember correct atlas-debug is very slow and only needed if you want to add breakpoints and debug. Else use the faster atlas-run.
They are both pretty slow on my system. If I make a change to the code do I need to stop and restart atlas? I can't tell if my changes are taking effect and it takes a very long time to spin up each time.
Im not sure about that.
Running atlas-mvn package in a separate terminal does the trick!
https://developer.atlassian.com/server/framework/atlassian-sdk/modify-the-plugin-using-quickreload/