-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
37 lines (33 loc) · 1.23 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
trigger:
tags:
include:
- '*'
branches:
include:
- '*'
pr: none
pool: Selfhosted Azure Devops Agents
# These defaults need to be set as variables on the pipeline in the Devops webinterface
parameters:
- name: organization
displayName: The Azure Devops organisation URL
type: string
default: $(devops-organisation-url)
- name: project
displayName: The Azure Devops project which hosts the pipelines
type: string
default: $(devops-project-name)
- name: pipelineId
displayName: The Azure Devops pipeline ID which should be activated, this should be the Github application pipeline
type: string
default: $(devops-pipeline-id)
- name: buildPipelineBranch
displayName: The Github application pipeline branch to use, this normally should be main
type: string
default: refs/heads/main
steps:
- bash: |
az pipelines run --project ${{parameters.project}} --id ${{parameters.pipelineId}} --branch ${{parameters.buildPipelineBranch}} --org ${{parameters.organization}} --parameters applicationBranch=$(Build.SourceBranch)
displayName: 'Trigger Schulddossier application pipeline for branch $(Build.SourceBranch)'
env:
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)