forked from Azure/azure-blueprints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
43 lines (38 loc) · 986 Bytes
/
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
38
39
40
41
42
43
pool: 'Hosted VS2017'
variables:
- name: spnName
value: 'pipelines-runner'
- name: blueprintsPath
value: '.\samples\'
- name: blueprintName
value: '101-boilerplate'
- name: subscriptionId
value: 'e93d3ee6-fac1-412f-92d6-bfb379e81af2' # / Contoso IT - SH360 - Prod
trigger:
branches:
include:
- master
- dev
paths:
exclude:
- README.md
- LICENSE
- .gitignore
- .github/*
steps:
- task: CreateBlueprint@1
inputs:
azureSubscription: $(spnName)
BlueprintName: $(blueprintName)
BlueprintPath: '$(blueprintsPath)$(blueprintName)' # would need to edit this to work with built-ins
AlternateLocation: false
PublishBlueprint: true
- task: AssignBlueprint@1
inputs:
azureSubscription: $(spnName)
AssignmentName: 'pla-$(blueprintName)'
BlueprintName: $(blueprintName)
ParametersFile: '$(blueprintsPath)$(blueprintName)\assign.json'
SubscriptionID: $(subscriptionId)
Wait: true
Timeout: 500