Search code examples
azure-devopstriggersgitlabwebhooks

HOW TO TRIGGER AZUREDEVOPS PIPELINE FROM GITLAB THROUGH GITLAB WEBHOOK


Unable to trigger azureDevops pipeline through Gitlab webhook

I can poll it using triggers options within the azureDevops pipeline but i am not able to trigger through Gitlab webhook. If anyone have a solution please help me out.

I tried configuring webhook in Gitlab but it couldn't able to trigger azuredevops pipeline


Solution

  • You will probably gonna need to execute a POST API request to AZDO API

    POST https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}/runs?api-version=7.1-preview.1
    

    Take a look at this api endpoint