Skip to main content

Adding a Visual Studio webhook

Abstract

You can specify webhooks in Visual Studio 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.

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.

  1. Open your app on Bitrise with a user that has the Admin role on the app.

  2. On the main page of the app, click on the App Settings icon: settings.svg.

    app-settings.png
  3. On the left, select Integrations.

  4. Click Set up webhooks manually.

  5. In the pop-up window, select Visual Studio from the dropdown menu.

    apps-webhooks-select.png
  6. Copy the webhook URL.

  7. Open your project on visualstudio.com.

  8. Go to the Admin/Control pane of the project.

  9. Select Service Hooks.

    Adding a Visual Studio webhook
  10. Click Create subscription.

  11. 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
  12. Click Finish.