I need a hook (don't know if it will be post or pre) to call an XL release API to trigger a build when a pull request is created.
I have never created a hook before. Please advise.
Hi @Ishan Vyas,
Are you using Bitbucket Server (the self-hosted version) or bitbucket.org (the Atlassian Saas offering)?
If you are using Bitbucket Server, you can use the "Pull request - Opened" webhook (see Pull request events - opened for the details of the payload.
Webhooks have been added to Bitbucket Server as part of the 5.4 release and the detailed documentation can be found here:
- Bitbucket Server 5.4 release notes
- Managing webhooks in Bitbucket Server
Cheers,
Caterina - Atlassian
Hello Caterina,
I am using the BitBucket server version 5.2.3 and I do not see the webhooks option on my admin panel.
Is there anyway to do this on this version or is upgrading to 5.4 the only way?
Thank You.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ishan Vyas,
An upgrade to Bitbucket Server 5.4 or higher is required to enable this feature.
Are you able to perform the upgrade or ask an admin to do it?
Cheers,
Caterina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.