Azure DevOps

Note

Prerequisite: The azure-pipelines.yml file should have been created in the Repository that contains your project code and tests under Pipelines.

Authorization

To supply the Authorization header with the value Basic <auth>, perform the following steps:

  1. Build a string of the form username:PAT. Read below about how to generate a Personal Access Token in Azure DevOps.

  2. Encode the string in Base64 format.

  3. Supply an "Authorization" header with the content "Basic " followed by the encoded string.

Generate Personal Access Token in Azure DevOps

Perform the following steps to generate a Personal Access Token (PAT) in Azure DevOps. Refer to Use personal access tokens for more information.

  1. Log into Azure.

  2. Go to User Settings and select Personal access tokens.

  3. Click New Token.

    Create a new personal access token by providing the details.

    Azure DevOps New Token

    The scope of authorization can be Full access or Custom-defined as per your requirement. For Custom defined, you can select Read, Write &amp; Manage/Execute for all options.

    Azure DevOps Create New Token Screen

Construct Webhook URL

The following is an example of a web request URL to trigger a build in Azure DevOps and follows this syntax.

For example, the organization and project values are as mentioned here.

Organization: qmetry

Project: qtm

PipelineId: 4

The URL to trigger the build would be -

CI/CD Rule Configuration

The following are examples of triggering the build without parameters, with query parameters, and with RAW parameters.

CI/CD Rule without Parameters

Azure DevOps without Parameters

CI/CD Rule With JSON Parameters

Azure DevOps With JSON Parameters

After creating the CI/CD rule in QMetry Test Management for Jira, you can trigger a pipeline job in Azure DevOps.

The pipeline is triggered successfully.

Azure DevOps Pipeline
Publication date: