bitrise.io

Adding a Visual Studio webhook

You can set up webhooks so that Bitrise automatically triggers a build of your app whenever you perform a specified action, such as a code push or a pull request. For Visual Studio, all you have to do is register your bitrise-webhooks URL for a visualstudio.com project as a Service Hooks integration.

Get the webhook URL for Visual Studio

  1. Go to the Code tab of your app’s page and in the INCOMING WEBHOOKS menu, click SETUP MANUALLY.
  2. Select Visual Studio Online / Visual Studio Team Services from the dropdown menu.

    Adding a Visual Studio webhook

  3. Copy the webhook URL for the selected service.

Set up webhook on Visual Studio

  1. Open your project on visualstudio.com.
  2. Go to the Admin/Control pane of the project.
  3. Select Service Hooks.

    Adding a Visual Studio webhook

  4. Click Create subscription.
  5. Create a service integration:
    • In the Service list select the Web Hooks option.

      Adding a Visual Studio webhook

    • Select the Code pushed event as the Trigger.

      Adding a Visual Studio webhook

    • In the Filters section select the Repository you want to integrate.
    • You can leave the other filters on default.
    • Click Next.
    • On the Action setup form enter the bitrise-webhooks URL (.../h/visualstudio/BITRISE-APP-SLUG/BITRISE-APP-API-TOKEN) in the URL field. You can leave every other option on default.

      Adding a Visual Studio webhook

  6. Click Finish.

That’s all! The next time you push code or push a new tag a build will be triggered (if you have Trigger mapping defined for the event(s) on Bitrise).