1

Does bitrise support integration with bitbucket server?

If so can you please point to instructions on how to setup the hook? I tried to use this hook but got no luck.

Also can I connect user account in bitrise to bitbucket?

Stas
  • 41
  • 4

2 Answers2

0

Does bitrise support integration with bitbucket server?

Depends on whether the webhook format of bitbucket server is the same as bitbucket.org's.

How webhook handling works in Bitrise.io: bitrise.io supports only it's own Build Trigger API. This API is used by the web interface when you start a build manually, as well as you can call it via curl or from any other tool (related DevCenter guide).

Service specific webhook formats are handled in the "webhook transformer" server. This server has a single purpose, it transforms service specific webhook calls (e.g. GitHub, Bitbucket, Slack, VSTS, Gogs, … webhook formats) to Bitrise.io Build Trigger API calls, performs the call and then returns the response (build started / failed to start the build).

The code of the server is open source, you can run it on your own servers, change anything in the code and send a Pull Request with your changes (if you run it on your own servers this is not mandatory). The latest release version is available & hosted free of charge at hooks.bitrise.io.

Also can I connect user account in bitrise to bitbucket?

bitbucket.org accounts can be connected, bitbucket server accounts can't - but you can do the setup manually, without connecting a bitbucket server account.

In any case, if you have a feature request (e.g. you don't have time to implement the webhook transformation) feel free to create a feature request on UserVoice or on GitHub (preferably in the related GitHub repo, or if it can be implemented as open source then in the bitrise-io/bitrise-contrib repo).

Viktor Benei
  • 3,447
  • 2
  • 28
  • 37
0

Bitrise recently rolled out an update (Oct. 6, 2016) that fully connects to the Bitbucket API for triggering builds with code pushes, pull requests, etc. New apps that use Github or Bitbucket are already setup with a webhook. Instructions for setting up the webhook for existing apps are as follows:

To get the webhook URL from Bitrise, select your app on the Bitrise Dashboard and select the Code tab, where you can find your Build trigger URL.

If your source code provider is Bitbucket visit the Bitbucket website, select your repository, then go to the repository settings. Under Integrations, select Webhooks, then click the Add webhook button. Paste your webhook URL in the field, add a title and make sure the "Repository push" is set as a trigger. Currently Bitrise only supports the default Push trigger. When done select Save.

Full instructions can be found here.

Community
  • 1
  • 1
Justin Vallely
  • 5,932
  • 3
  • 30
  • 44