Use scriptrunner instead a post-receive webhook post

mike brosnan July 15, 2016

I want to configure a post-commit hook on all repositories to POST to an endpoint. It seems like I can do this globally with scriptrunner rather than enable in each repository.

 

Any examples would be helpful

1 answer

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 18, 2016

Admins can define post-receive hooks that apply to all current and future repos: https://scriptrunner.adaptavist.com/latest/bitbucket/PostReceiveHooks.html

Posting to an endpoint is simple enough, there is an example (in the event handling docn but should be similar) here: https://scriptrunner.adaptavist.com/latest/bitbucket/StashEventHandlers.html#_post_to_em_slack_em_when_a_repository_is_forked

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events