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:
|
schedules:
|
||||||
- cron: "0 7 * * 1-5"
|
- cron: "0 7 * * 1-5"
|
||||||
displayName: Daily midnight run
|
displayName: Run on weekdays at 7am UTC
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- main
|
- main
|
||||||
|
@ -15,7 +15,7 @@ pool:
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: dotnetDotnetRunId
|
- name: dotnetDotnetRunId
|
||||||
displayName: 'Specific dotnet-dotnet run ID'
|
displayName: 'Specific dotnet-dotnet run ID number (e.g `2108850`)'
|
||||||
type: string
|
type: string
|
||||||
default: ' '
|
default: ' '
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
echo "Installer build: https://dev.azure.com/dnceng/internal/_build/results?buildId=$installer_build&view=results"
|
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=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
|
displayName: Find associated builds
|
||||||
name: Get_Build_Ids
|
name: Get_Build_Ids
|
||||||
env:
|
env:
|
||||||
|
@ -72,7 +72,7 @@ jobs:
|
||||||
buildVersionToDownload: specific
|
buildVersionToDownload: specific
|
||||||
project: internal
|
project: internal
|
||||||
pipeline: $(DOTNET_DOTNET_CI_PIPELINE_ID)
|
pipeline: $(DOTNET_DOTNET_CI_PIPELINE_ID)
|
||||||
buildId: $(VmrBuildId)
|
buildId: $(DotnetDotnetBuildId)
|
||||||
artifact: ${{ parameters.buildName }}_${{ parameters.architecture }}_Artifacts
|
artifact: ${{ parameters.buildName }}_${{ parameters.architecture }}_Artifacts
|
||||||
patterns: '**/dotnet-sdk-+([0-9]).+([0-9]).+([0-9])?(-@(alpha|preview|rc|rtm)*)-${{ parameters.targetRid }}.tar.gz'
|
patterns: '**/dotnet-sdk-+([0-9]).+([0-9]).+([0-9])?(-@(alpha|preview|rc|rtm)*)-${{ parameters.targetRid }}.tar.gz'
|
||||||
allowPartiallySucceededBuilds: true
|
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 {} \;)
|
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
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sdk_tarball_name=$(find "$(Pipeline.Workspace)/Artifacts" -name "dotnet-sdk-*-${{ parameters.targetRid }}.tar.gz" -exec basename {} \;)
|
sdk_tarball_name=$(find "$(Pipeline.Workspace)/Artifacts" -name "dotnet-sdk-*-${{ parameters.targetRid }}.tar.gz" -exec basename {} \;)
|
||||||
|
|
||||||
if [[ -z $sdk_tarball_name ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue