From b2b69cb85ebfc1657cf0df561db8776fd91f225c Mon Sep 17 00:00:00 2001 From: Craig Fowler Date: Sat, 27 Feb 2021 19:32:46 +0000 Subject: [PATCH] Attempt to fix build; after_test "executed with exception" I'm a little confused as to how this happened. It could relate to an exit code sent by SonarScanner. I'm going to combine these two commands into a single step so that if SonarScanner drops a non-zero exit code, it should still continue on past it. --- appveyor.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ca2f57b6c..ec959fab0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -74,8 +74,12 @@ test_script: - ps: dotnet test --collect:"XPlat Code Coverage" --logger:xunit -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover after_test: - - ps: if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet-sonarscanner end /d:sonar.login=$env:sonarcloud_api_key } - - ps: dotnet pack Elsa.sln --include-symbols /p:Version="$env:APPVEYOR_BUILD_VERSION" + - ps: >- + if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { + & dotnet-sonarscanner end /d:sonar.login=$env:sonarcloud_api_key + } + + dotnet pack Elsa.sln --include-symbols /p:Version="$env:APPVEYOR_BUILD_VERSION" artifacts: - path: '**/*.nupkg'