Skip to content

Commit 50ed7c7

Browse files
Eng | Fix official and kerberos pipelines (#4313)
* Eng | Fix official and kerberos pipelines * Do not publish code coverage when previous stages failed
1 parent 4601acc commit 50ed7c7

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

eng/pipelines/kerberos/sqlclient-kerberos.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ stages:
131131
parameters:
132132
runtimes: [8.x, 9.x]
133133

134+
# Restore dotnet local tools (pwsh, apicompat, etc.). Required by build.proj targets
135+
# such as _CheckPwshToolRestored that run during the SqlClient ref project build.
136+
- template: /eng/pipelines/steps/restore-dotnet-tools.yml@self
137+
134138
# --- Update test configuration ---
135139
# Uses runtime variables from the matrix ($(managedSNI)) so we use
136140
# inline PowerShell instead of the shared config template which
@@ -224,6 +228,10 @@ stages:
224228
parameters:
225229
runtimes: [8.x, 9.x]
226230

231+
# Restore dotnet local tools (pwsh, apicompat, etc.). Required by build.proj targets
232+
# such as _CheckPwshToolRestored that run during the SqlClient ref project build.
233+
- template: /eng/pipelines/steps/restore-dotnet-tools.yml@self
234+
227235
# --- Update test configuration (with Kerberos credentials) ---
228236
- pwsh: |
229237
$jdata = Get-Content -Raw "config.default.json" | ConvertFrom-Json
@@ -283,7 +291,7 @@ stages:
283291
dependsOn:
284292
- windows
285293
- linux
286-
condition: succeededOrFailed()
294+
condition: succeeded()
287295
jobs:
288296
- template: /eng/pipelines/common/templates/jobs/ci-code-coverage-job.yml@self
289297
parameters:

eng/pipelines/onebranch/jobs/build-buildproj-job.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ jobs:
130130
# Install the .NET SDK.
131131
- template: /eng/pipelines/steps/install-dotnet.yml@self
132132

133+
# Restore dotnet local tools (pwsh, apicompat, etc.). Required by build.proj targets
134+
# such as _CheckPwshToolRestored that run during RoslynAnalyzers and Build.
135+
- template: /eng/pipelines/steps/restore-dotnet-tools.yml@self
136+
133137
# Perform Roslyn analysis before building, since this step will clobber build output.
134138
- template: /eng/pipelines/onebranch/steps/roslyn-analyzers-buildproj-step.yml@self
135139
parameters:

0 commit comments

Comments
 (0)