File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 3
3
<ProductDependencies >
4
4
</ProductDependencies >
5
5
<ToolsetDependencies >
6
- <Dependency Name =" Microsoft.DotNet.Arcade.Sdk" Version =" 8.0.0-beta.22620.3 " >
6
+ <Dependency Name =" Microsoft.DotNet.Arcade.Sdk" Version =" 8.0.0-beta.22621.1 " >
7
7
<Uri >https://github.com/dotnet/arcade</Uri >
8
- <Sha >0cc119808e4affdda4b02cb81153de27bce9202e </Sha >
8
+ <Sha >3003926e4126f827bca50d5b3ee179afc86d8a7b </Sha >
9
9
<SourceBuild RepoName =" arcade" ManagedOnly =" true" />
10
10
</Dependency >
11
11
</ToolsetDependencies >
Original file line number Diff line number Diff line change @@ -815,7 +815,8 @@ function MSBuild-Core() {
815
815
Write-Host " See log: $buildLog " - ForegroundColor DarkGray
816
816
}
817
817
818
- if ($ci ) {
818
+ # When running on Azure Pipelines, override the returned exit code to avoid double logging.
819
+ if ($ci -and $env: SYSTEM_TEAMPROJECT -ne $null ) {
819
820
Write-PipelineSetResult - Result " Failed" - Message " msbuild execution failed."
820
821
# Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
821
822
# The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error
Original file line number Diff line number Diff line change @@ -472,7 +472,9 @@ function MSBuild-Core {
472
472
# We should not Write-PipelineTaskError here because that message shows up in the build summary
473
473
# The build already logged an error, that's the reason it failed. Producing an error here only adds noise.
474
474
echo " Build failed with exit code $exit_code . Check errors above."
475
- if [[ " $ci " == " true" ]]; then
475
+
476
+ # When running on Azure Pipelines, override the returned exit code to avoid double logging.
477
+ if [[ " $ci " == " true" && -n ${SYSTEM_TEAMPROJECT:- } ]]; then
476
478
Write-PipelineSetResult -result " Failed" -message " msbuild execution failed."
477
479
# Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
478
480
# The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error
Original file line number Diff line number Diff line change 18
18
"rollForward" : " patch"
19
19
},
20
20
"msbuild-sdks" : {
21
- "Microsoft.DotNet.Arcade.Sdk" : " 8.0.0-beta.22620.3 "
21
+ "Microsoft.DotNet.Arcade.Sdk" : " 8.0.0-beta.22621.1 "
22
22
}
23
23
}
You can’t perform that action at this time.
0 commit comments