Skip to main content

Azure DevOps Pipeline Action

This action allows you to invoke pipelines in your Azure DevOps project.

invoke-azure-devops-pipeline.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Playbook
metadata:
name: invoke-azure-devops-pipeline
namespace: default
spec:
parameters:
- name: project
label: Project name
- name: pipeline
label: Pipeline ID
actions:
- name: Invoke pipeline
azureDevopsPipeline:
org: flanksource
project: "{{.params.project}}"
token:
valueFrom:
secretKeyRef:
name: azure-devops
key: token
pipeline:
id: "{{.params.pipeline}}"
FieldDescriptionSchemeRequiredTemplatable
orgOrg is the name of the Azure DevOps organization.stringtruetrue
projectProject ID or project namestringtruetrue
tokenToken is the personal access token.EnvVartruetrue
pipelinePipeline is the azure pipeline to invoke.AzureDevopsPipelinetruetrue
parametersParameteres are the settings that influence the pipeline run.AzureDevopsPipelineParametersfalsetrue

Pipeline

FieldDescriptionSchemeRequiredTemplatable
idPipeline ID.stringtruetrue
versionPipeline version.stringfalsetrue

Parameters

FieldDescriptionSchemeRequiredTemplatable
resourcesThe resources the run requires.map[string]anyfalsetrue
templateParametersThe template parameters the run requires.map[string]anyfalsetrue
variablesThe variables the run requires.map[string]anyfalsetrue
stagesToSkipThe stages to skip.[]stringfalsetrue

Templating

The fields that are marked as templatable receives a environment variable that contain details about the corresponding config, check or component and the parameter(if applicable).

FieldDescriptionSchema
configConfig passed to the playbookConfigItem
componentComponent passed to the playbookComponent
checkCanary Check passed to the playbookCheck
paramsUser provided parameters to the playbookmap[string]string