0

We are writing plugin for TFS that expects to receive BuildStarted and BuildCompleted Events.

We found that BuildCompletedEvent can be received via WebHooks.

But BuildStartedEvent is not possible to receive via WebHooks .

Does exist any other way to receive BuildStarted event in TFS 2018?

Machavity
  • 30,841
  • 27
  • 92
  • 100
Radislav
  • 11
  • 1

1 Answers1

0

There is no hook for BuildStartedEvent (Azure DevOps Services service hooks events). You may use the workaround:

  1. Add as first step inline powershell task (PowerShell task) and send information about your started build (Invoke-WebRequest, POST with parameters) to your service.

OR

  1. Create .net app to send a web request (How to make HTTP POST web request) to your service. Then add first step with command line (Command Line task) to run your custom app.
Shamrai Aleksander
  • 13,096
  • 3
  • 24
  • 31