Skip to content

SCM Azure DevOps

Fábio Luciano edited this page Jun 16, 2026 · 5 revisions

Azure DevOps

Actions: commit_status · pr_comment (create only) · label (add/remove on PRs).

Authentication

Personal Access Token with Code (Read & Write):

scm:
  azure_devops:
    - name: azure
      enabled: true
      base_url: https://dev.azure.com
      secretRef:
        name: azure-pat                    # Secret key: token
      genre: tekton                        # status context genre (groups checks in the UI)

Note: unlike other providers, the Azure instance uses secretRef at the top level (no auth: block).

Required annotations

scm.provider = instance name; scm.repo-org + scm.repo-project + scm.repo-name; scm.commit-sha for statuses; scm.pr-number for comments/labels.

State mapping

pending/running → pending, success → succeeded, failure → failed, error → error.

The status context is genre + the scm.context annotation — Azure groups statuses by genre in the PR policy panel.

Comment templates

PR comment bodies are optional templates: inline string, configmapRef: {name, key}, or omitted for the built-in "Build <State> for <RunName>" body. The chart ships azuredevops-comment.tmpl as an opt-in configmapRef example. See Actions → Comment templates are optional.

Clone this wiki locally