Fix: [AzurePipelines] manifest.sh didn't know when it was a stable release

In result, the name of the release was wrong, causing confusing
in tools using the manifest.yaml.
This commit is contained in:
Patric Stout 2019-02-09 20:13:28 +01:00
parent 0151fe998a
commit 13b7e8774d
3 changed files with 11 additions and 1 deletions

View File

@ -15,7 +15,7 @@ if [ ! -e .version ] || [ ! -e .release_date ]; then
fi
# Find the name based on the version
if [ "${ISSTABLERELEASE}" = "true" ]; then
if [ -e .is_stable ]; then
isTesting=$(cat .version | grep "RC\|beta" || true)
if [ -z "${isTesting}" ]; then
NAME="stable"

View File

@ -1,3 +1,6 @@
parameters:
IsStableRelease: false
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download all bundles'
@ -5,6 +8,10 @@ steps:
downloadType: specific
itemPattern: 'bundles/*'
downloadPath: '$(Build.ArtifactStagingDirectory)'
- ${{ if eq(parameters.IsStableRelease, true) }}:
- script: |
touch .is_stable
displayName: 'Mark as stable release'
- script: |
set -ex
./azure-pipelines/manifest.sh ../a/bundles/

View File

@ -164,6 +164,9 @@ jobs:
steps:
- template: release-fetch-source.yml
- template: release-manifest.yml
${{ if eq(parameters.IsStableRelease, true) }}:
parameters:
IsStableRelease: true
- template: release-bundles.yml
parameters:
CalculateChecksums: false