Skip to content

Commit 5cc46b7

Browse files
authored
Allow to run diagnostics pipeline in build-only mode (#5613)
1 parent d4961a0 commit 5cc46b7

File tree

1 file changed

+45
-38
lines changed

1 file changed

+45
-38
lines changed

diagnostics.yml

Lines changed: 45 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ parameters:
1515
- default
1616
- custom
1717
- dotnetclimsrc-sas-token-base64
18+
- name: buildOnly
19+
displayName: Build only (skip tests)
20+
type: boolean
21+
default: false
1822

1923
trigger: none
2024

@@ -75,6 +79,7 @@ extends:
7579
jobTemplate: ${{ variables.jobTemplate }}
7680
name: Windows
7781
osGroup: Windows_NT
82+
buildOnly: ${{ parameters.buildOnly }}
7883
buildConfigs:
7984
- configuration: Debug
8085
architecture: x64
@@ -129,6 +134,7 @@ extends:
129134
parameters:
130135
jobTemplate: ${{ variables.jobTemplate }}
131136
osGroup: MacOS
137+
buildOnly: ${{ parameters.buildOnly }}
132138
buildConfigs:
133139
- configuration: Release
134140
architecture: x64
@@ -212,45 +218,13 @@ extends:
212218
# #
213219
############################
214220

215-
- template: /eng/pipelines/build.yml
216-
parameters:
217-
jobTemplate: ${{ variables.jobTemplate }}
218-
name: Ubuntu_22_04
219-
osGroup: Linux
220-
container: test_ubuntu_22_04
221-
dependsOn: Linux
222-
testOnly: true
223-
buildConfigs:
224-
- configuration: Release
225-
architecture: x64
226-
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
227-
- configuration: Debug
228-
architecture: x64
229-
230-
- template: /eng/pipelines/build.yml
231-
parameters:
232-
jobTemplate: ${{ variables.jobTemplate }}
233-
name: Alpine3_19
234-
osGroup: Linux
235-
osSuffix: -musl
236-
container: test_linux_musl_x64
237-
dependsOn: Linux_musl
238-
testOnly: true
239-
disableComponentGovernance: true
240-
buildConfigs:
241-
- configuration: Release
242-
architecture: x64
243-
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
244-
- configuration: Debug
245-
architecture: x64
246-
247-
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
221+
- ${{ if ne(parameters.buildOnly, true) }}:
248222
- template: /eng/pipelines/build.yml
249223
parameters:
250224
jobTemplate: ${{ variables.jobTemplate }}
251-
name: Debian_Bullseye
225+
name: Ubuntu_22_04
252226
osGroup: Linux
253-
container: test_debian_11_amd64
227+
container: test_ubuntu_22_04
254228
dependsOn: Linux
255229
testOnly: true
256230
buildConfigs:
@@ -263,18 +237,51 @@ extends:
263237
- template: /eng/pipelines/build.yml
264238
parameters:
265239
jobTemplate: ${{ variables.jobTemplate }}
266-
name: Fedora_39
240+
name: Alpine3_19
267241
osGroup: Linux
268-
container: test_fedora
269-
dependsOn: Linux
242+
osSuffix: -musl
243+
container: test_linux_musl_x64
244+
dependsOn: Linux_musl
270245
testOnly: true
246+
disableComponentGovernance: true
271247
buildConfigs:
272248
- configuration: Release
273249
architecture: x64
274250
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
275251
- configuration: Debug
276252
architecture: x64
277253

254+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
255+
- template: /eng/pipelines/build.yml
256+
parameters:
257+
jobTemplate: ${{ variables.jobTemplate }}
258+
name: Debian_Bullseye
259+
osGroup: Linux
260+
container: test_debian_11_amd64
261+
dependsOn: Linux
262+
testOnly: true
263+
buildConfigs:
264+
- configuration: Release
265+
architecture: x64
266+
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
267+
- configuration: Debug
268+
architecture: x64
269+
270+
- template: /eng/pipelines/build.yml
271+
parameters:
272+
jobTemplate: ${{ variables.jobTemplate }}
273+
name: Fedora_39
274+
osGroup: Linux
275+
container: test_fedora
276+
dependsOn: Linux
277+
testOnly: true
278+
buildConfigs:
279+
- configuration: Release
280+
architecture: x64
281+
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
282+
- configuration: Debug
283+
architecture: x64
284+
278285
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
279286
- stage: package
280287
displayName: Package, Sign, and Generate BAR Manifests

0 commit comments

Comments
 (0)