tomasbjerre / pull-request-notifier-for-bitbucket

Bitbucket Server plugin that invokes a custom URL when a pull request event is triggered.
Other
185 stars 74 forks source link

NTLM support #317

Open gforceg opened 5 years ago

gforceg commented 5 years ago

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.

tomasbjerre commented 5 years ago

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:

gforceg commented 5 years ago

@tomasbjerre, Do I need to rerun atlas-debug after every change or does bitbucket reimport the plugin automatically each time I change it?

Thanks.

tomasbjerre commented 5 years ago

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.

gforceg commented 5 years ago

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.

tomasbjerre commented 5 years ago

Im not sure about that.

gforceg commented 5 years ago

Running atlas-mvn package in a separate terminal does the trick!

https://developer.atlassian.com/server/framework/atlassian-sdk/modify-the-plugin-using-quickreload/