Fix error message when publishing logs in Restore internal tools step (#56307)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 26 Jul 2021 17:33:45 +0000 (19:33 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jul 2021 17:33:45 +0000 (19:33 +0200)
In https://dev.azure.com/dnceng/internal/_build/results?buildId=1250178&view=results we hit an issue where the 'Restore internal tools' step failed, but AzDO only highlights the failure in the 'Publish Logs' step because the directory didn't exist.
This happens because the restore step was not passing along the build configuration so it defaults to Debug instead of Release, leading to the log directory we try to publish not existing.

eng/pipelines/common/restore-internal-tools.yml

index 848c980..d289d82 100644 (file)
@@ -7,6 +7,7 @@ steps:
   - script: $(Build.SourcesDirectory)$(dir)build$(scriptExt)
             -ci
             -restore
+            -configuration $(_BuildConfig)
             -projects $(Build.SourcesDirectory)/eng/common/internal/Tools.csproj
             /bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/RestoreInternal.binlog
             /v:normal