Skip to content

Commit 0f77f11

Browse files
committed
🤖 Pipe dotnet verbosity through pipeline
1 parent a4060e8 commit 0f77f11

4 files changed

Lines changed: 66 additions & 6 deletions

File tree

eng/pipelines/pr/jobs/test-buildproj-job.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ parameters:
1818
- name: buildSuffix
1919
type: string
2020

21+
# Dotnet CLI verbosity level.
22+
- name: dotnetVerbosity
23+
type: string
24+
default: normal
25+
values:
26+
- quiet
27+
- minimal
28+
- normal
29+
- detailed
30+
- diagnostic
31+
2132
# Platform Parameters ====================================================
2233

2334
# Display name of the platform. This will be formatted into the job's official name as well as
@@ -89,7 +100,7 @@ jobs:
89100
inputs:
90101
command: build
91102
projects: build.proj
92-
verbosity: detailed
103+
verbosity: ${{ parameters.dotnetVerbosity }}
93104
arguments: >-
94105
-t:Test${{ parameters.packageShortName }}${{ parameters.testProject }}
95106
-p:Configuration=${{ parameters.buildConfiguration }}

eng/pipelines/pr/jobs/test-sqlclientmanual-job.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#################################################################################
66

77
parameters:
8+
# General Parameters =====================================================
9+
810
# Configuration with which to build the packages and execute the tests.
911
- name: buildConfiguration
1012
type: string
@@ -16,6 +18,17 @@ parameters:
1618
- name: buildSuffix
1719
type: string
1820

21+
# Dotnet CLI verbosity level.
22+
- name: dotnetVerbosity
23+
type: string
24+
default: normal
25+
values:
26+
- quiet
27+
- minimal
28+
- normal
29+
- detailed
30+
- diagnostic
31+
1932
# Name of the stage that generated the SA password
2033
- name: stageNameSecrets
2134
type: string
@@ -174,7 +187,7 @@ jobs:
174187
inputs:
175188
command: build
176189
projects: build.proj
177-
verbosity: detailed
190+
verbosity: ${{ parameters.dotnetVerbosity }}
178191
arguments: >-
179192
-t:TestSqlClientManual
180193
-p:Configuration=${{ parameters.buildConfiguration }}

eng/pipelines/pr/pr-pipeline.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@
66

77
name: $(DayOfYear)$(Rev:rr)
88

9+
parameters:
10+
# General Parameters =====================================================
11+
12+
# Dotnet CLI verbosity level.
13+
- name: dotnetVerbosity
14+
displayName: dotnet CLI Verbosity
15+
type: string
16+
default: normal
17+
values:
18+
- quiet
19+
- minimal
20+
- normal
21+
- detailed
22+
- diagnostic
23+
924
variables:
1025
- template: /eng/pipelines/common/variables/common-variables.yml@self
1126
- template: /eng/pipelines/pr/variables/pr-variables.yml@self
@@ -28,6 +43,7 @@ stages:
2843
parameters:
2944
buildConfiguration: Debug
3045
buildSuffix: pr
46+
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
3147
poolName: $(PoolNameDefault)
3248
stageNamePack: ${{ variables.stageNamePack }}
3349
stageNameSecrets: ${{ variables.stageNameSecrets }}

eng/pipelines/pr/stages/test-stages.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# confidence and expedience of validation.
1010

1111
parameters:
12+
# General Parameters =====================================================
13+
1214
# Configuration with which to build the packages and execute the tests.
1315
- name: buildConfiguration
1416
type: string
@@ -20,6 +22,21 @@ parameters:
2022
- name: buildSuffix
2123
type: string
2224

25+
# Dotnet CLI verbosity level.
26+
- name: dotnetVerbosity
27+
type: string
28+
default: normal
29+
values:
30+
- quiet
31+
- minimal
32+
- normal
33+
- detailed
34+
- diagnostic
35+
36+
# Name of the pool to use for jobs that require customized VM images.
37+
- name: poolName
38+
type: string
39+
2340
# Name of the build/pack stage that this stage will depend on.
2441
- name: stageNamePack
2542
type: string
@@ -28,10 +45,6 @@ parameters:
2845
- name: stageNameSecrets
2946
type: string
3047

31-
# Name of the pool to use for jobs that require customized VM images.
32-
- name: poolName
33-
type: string
34-
3548
# Manual Test Configuration Parameters ==================================
3649

3750
# Azure Key Vault tenant ID that will be set in the config.json file for sqlclient manual tests.
@@ -106,6 +119,7 @@ stages:
106119
parameters:
107120
buildConfiguration: ${{ parameters.buildConfiguration }}
108121
buildSuffix: ${{ parameters.buildSuffix }}
122+
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
109123
platformDisplayName: ${{ platform.displayName }}
110124
platformDotnet: ${{ platform.dotnet }}
111125
platformImage: ${{ platform.image }}
@@ -119,6 +133,7 @@ stages:
119133
parameters:
120134
buildConfiguration: ${{ parameters.buildConfiguration }}
121135
buildSuffix: ${{ parameters.buildSuffix }}
136+
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
122137
platformDisplayName: ${{ platform.displayName }}
123138
platformDotnet: ${{ platform.dotnet }}
124139
platformImage: ${{ platform.image }}
@@ -132,6 +147,7 @@ stages:
132147
parameters:
133148
buildConfiguration: ${{ parameters.buildConfiguration }}
134149
buildSuffix: ${{ parameters.buildSuffix }}
150+
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
135151
platformDisplayName: ${{ platform.displayName }}
136152
platformDotnet: ${{ platform.dotnet }}
137153
platformImage: ${{ platform.image }}
@@ -146,6 +162,7 @@ stages:
146162
parameters:
147163
buildConfiguration: ${{ parameters.buildConfiguration }}
148164
buildSuffix: ${{ parameters.buildSuffix }}
165+
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
149166
stageNameSecrets: ${{ parameters.stageNameSecrets }}
150167

151168
platformDisplayName: ${{ platform.displayName }}
@@ -170,6 +187,7 @@ stages:
170187
parameters:
171188
buildConfiguration: ${{ parameters.buildConfiguration }}
172189
buildSuffix: ${{ parameters.buildSuffix }}
190+
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
173191
stageNameSecrets: ${{ parameters.stageNameSecrets }}
174192

175193
platformDisplayName: ${{ platform.displayName }}
@@ -194,6 +212,7 @@ stages:
194212
parameters:
195213
buildConfiguration: "Release" # AE tests are not stable enough to run in DEBUG mode (as of 5/29/26)
196214
buildSuffix: ${{ parameters.buildSuffix }}
215+
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
197216
stageNameSecrets: ${{ parameters.stageNameSecrets }}
198217

199218
platformDisplayName: ${{ platform.displayName }}
@@ -218,6 +237,7 @@ stages:
218237
parameters:
219238
buildConfiguration: ${{ parameters.buildConfiguration }}
220239
buildSuffix: ${{ parameters.buildSuffix }}
240+
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
221241
platformDisplayName: ${{ platform.displayName }}
222242
platformDotnet: ${{ platform.dotnet }}
223243
platformImage: ${{ platform.image }}

0 commit comments

Comments
 (0)