-
Notifications
You must be signed in to change notification settings - Fork 17
/
example.yml
34 lines (34 loc) · 1.36 KB
/
example.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
trigger: none
resources:
repositories:
- repository: JiraDeployInfo
type: github
name: educationperfect/azure-jira-update
endpoint: "ep-all" # remove this when repo becomes public
stages:
- stage: DeployTest
jobs:
- deployment: Test
environment: "testjira"
pool:
name: Generic Linux Agents
demands: docker
workspace:
clean: all
strategy:
runOnce:
preDeploy:
steps:
- {template: update-jira.yml@JiraDeployInfo, parameters: { JiraState: "Pending", JiraEnvironment: "Testing"}}
# JiraState can be one of "Unknown", "Pending", "InProgress", "Cancelled", "Failed", "RolledBack", "Successful"
# JiraEnvironment can one of "Unmapped", "Development", "Testing", "Staging", "Production"
on:
failure:
steps:
- {template: update-jira.yml@JiraDeployInfo, parameters: { JiraState: "Failed", JiraEnvironment: "Testing" }}
success:
steps:
- {template: update-jira.yml@JiraDeployInfo, parameters: { JiraState: "Successful", JiraEnvironment: "Testing" }}
deploy:
steps:
- {template: update-jira.yml@JiraDeployInfo, parameters: { JiraState: "InProgress", JiraEnvironment: "Testing" }}