fail message
This commit is contained in:
parent
ee222d3f23
commit
a4f5ecb0eb
2 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
schedules:
|
||||
- cron: "0 7 * * 1-5"
|
||||
displayName: Daily midnight run
|
||||
displayName: Run on weekdays at 7am UTC
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
|
@ -15,7 +15,7 @@ pool:
|
|||
|
||||
parameters:
|
||||
- name: dotnetDotnetRunId
|
||||
displayName: 'Specific dotnet-dotnet run ID'
|
||||
displayName: 'Specific dotnet-dotnet run ID number (e.g `2108850`)'
|
||||
type: string
|
||||
default: ' '
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
echo "Installer build: https://dev.azure.com/dnceng/internal/_build/results?buildId=$installer_build&view=results"
|
||||
|
||||
echo "##vso[task.setvariable variable=InstallerBuildId]$installer_build"
|
||||
echo "##vso[task.setvariable variable=VmrBuildId]$dotnet_dotnet_build"
|
||||
echo "##vso[task.setvariable variable=DotnetDotnetBuildId]$dotnet_dotnet_build"
|
||||
displayName: Find associated builds
|
||||
name: Get_Build_Ids
|
||||
env:
|
||||
|
@ -72,7 +72,7 @@ jobs:
|
|||
buildVersionToDownload: specific
|
||||
project: internal
|
||||
pipeline: $(DOTNET_DOTNET_CI_PIPELINE_ID)
|
||||
buildId: $(VmrBuildId)
|
||||
buildId: $(DotnetDotnetBuildId)
|
||||
artifact: ${{ parameters.buildName }}_${{ parameters.architecture }}_Artifacts
|
||||
patterns: '**/dotnet-sdk-+([0-9]).+([0-9]).+([0-9])?(-@(alpha|preview|rc|rtm)*)-${{ parameters.targetRid }}.tar.gz'
|
||||
allowPartiallySucceededBuilds: true
|
||||
|
@ -86,14 +86,14 @@ jobs:
|
|||
msft_sdk_tarball_name=$(find "$(Pipeline.Workspace)/Artifacts" -name "dotnet-sdk-*-linux-${{ parameters.architecture }}.tar.gz" -exec basename {} \;)
|
||||
|
||||
if [[ -z $msft_sdk_tarball_name ]]; then
|
||||
fail "Microsoft SDK tarball does not exist in '$(Pipeline.Workspace)/Artifacts'"
|
||||
fail "Microsoft SDK tarball does not exist in '$(Pipeline.Workspace)/Artifacts'. The associated build 'https://dev.azure.com/dnceng/internal/_build/results?buildId=$installer_build&view=results' might have failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sdk_tarball_name=$(find "$(Pipeline.Workspace)/Artifacts" -name "dotnet-sdk-*-${{ parameters.targetRid }}.tar.gz" -exec basename {} \;)
|
||||
|
||||
if [[ -z $sdk_tarball_name ]]; then
|
||||
fail "Source-build SDK tarball does not exist in '$(Pipeline.Workspace)/Artifacts'"
|
||||
fail "Source-build SDK tarball does not exist in '$(Pipeline.Workspace)/Artifacts'. The associated build 'https://dev.azure.com/dnceng/internal/_build/results?buildId=$dotnet_dotnet_build&view=results' might have failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue