-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathado-build.yml
114 lines (110 loc) · 2.52 KB
/
ado-build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
pool:
vmImage: "ubuntu-latest"
trigger:
branches:
include:
- 'main'
- 'release/*'
pr: none
parameters:
- name: VSCODE_PUBLISH
displayName: "Publish to builds.code.visualstudio.com"
type: boolean
default: true
- name: VSCODE_RELEASE
displayName: "Release build if successful"
type: boolean
default: false
variables:
- name: VSCODE_PUBLISH
value: ${{ eq(parameters.VSCODE_PUBLISH, true) }}
- name: VSCODE_RELEASE
value: ${{ eq(parameters.VSCODE_RELEASE, true) }}
stages:
- stage: Compile
jobs:
- job: Compile
steps:
- script: |
echo Compile
# exit 1
# - stage: Windows
# dependsOn:
# - Compile
# jobs:
# - job: Windows
# steps:
# - script: |
# echo Windows
# - stage: LinuxServerDependencies
# jobs:
# - job: LinuxServerDependencies
# steps:
# - script: |
# echo LinuxServerDependencies
# - stage: Linux
# dependsOn:
# - Compile
# - LinuxServerDependencies
# jobs:
# - job: Linux
# steps:
# - script: |
# echo Linux
# - stage: macOS
# dependsOn:
# - Compile
# jobs:
# - job: macOS
# steps:
# - script: |
# echo macOS
# - ${{ if eq(variables['VSCODE_PUBLISH'], 'true') }}:
# - stage: Publish
# dependsOn:
# - Compile
# jobs:
# - job: Publish
# steps:
# - script: |
# echo Publish
# - ${{ if eq(variables['VSCODE_RELEASE'], 'true') }}:
# - stage: Release
# dependsOn:
# - Publish
# jobs:
# - job: Release
# steps:
# - script: |
# echo Release
- stage: IM_Notification_success
displayName: IM Notification success
dependsOn:
- Compile
# - Windows
# - Linux
# - macOS
# - Publish
# - Release
jobs:
- job: IM_Notification_success
variables:
CURRENT_BUILD_RESULT: succeeded
steps:
- template: ado-build-chat.yml
- stage: IM_Notification_failure
displayName: IM Notification failure
dependsOn:
- Compile
# - Windows
# - Linux
# - macOS
# - Publish
# - Release
condition: failed()
jobs:
- job: IM_Notification_failure
variables:
CURRENT_BUILD_RESULT: failed
steps:
- template: ado-build-chat.yml