mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-17 15:57:21 +03:00
fix release job (#9166)
Three issues here: 1. The release job runs on an Azure-hosted agent, so it doesn't have the `reset_caches.sh` script (and doesn't need it). 2. The `bash-lib` step should not run if the current job has already failed. 3. The `skip-github` jobs should also not run if the job has failed. CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
f6effb228a
commit
17f8bcd37d
@ -62,7 +62,6 @@ jobs:
|
||||
set -euo pipefail
|
||||
git checkout $(release_sha)
|
||||
name: checkout_release
|
||||
- template: ci/clean-up.yml
|
||||
- template: ci/bash-lib.yml
|
||||
parameters:
|
||||
var_name: bash-lib
|
||||
@ -79,17 +78,17 @@ jobs:
|
||||
inputs:
|
||||
artifactName: linux-release
|
||||
targetPath: $(Build.StagingDirectory)/release-artifacts
|
||||
condition: not(eq(variables['skip-github'], 'TRUE'))
|
||||
condition: and(succeeded(), not(eq(variables['skip-github'], 'TRUE')))
|
||||
- task: DownloadPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: macos-release
|
||||
targetPath: $(Build.StagingDirectory)/release-artifacts
|
||||
condition: not(eq(variables['skip-github'], 'TRUE'))
|
||||
condition: and(succeeded(), not(eq(variables['skip-github'], 'TRUE')))
|
||||
- task: DownloadPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: windows-release
|
||||
targetPath: $(Build.StagingDirectory)/release-artifacts
|
||||
condition: not(eq(variables['skip-github'], 'TRUE'))
|
||||
condition: and(succeeded(), not(eq(variables['skip-github'], 'TRUE')))
|
||||
- bash: |
|
||||
set -euo pipefail
|
||||
KEY_FILE=$(mktemp)
|
||||
@ -128,13 +127,13 @@ jobs:
|
||||
isPrerelease: true
|
||||
releaseNotesSource: 'input'
|
||||
releaseNotes: "This is a pre-release. Use at your own risk."
|
||||
condition: not(eq(variables['skip-github'], 'TRUE'))
|
||||
condition: and(succeeded(), not(eq(variables['skip-github'], 'TRUE')))
|
||||
- bash: |
|
||||
set -euo pipefail
|
||||
./ci/publish-artifactory.sh $(Build.StagingDirectory) $(release_tag)
|
||||
env:
|
||||
AUTH: $(ARTIFACTORY_USERNAME):$(ARTIFACTORY_PASSWORD)
|
||||
condition: not(eq(variables['skip-github'], 'TRUE'))
|
||||
condition: and(succeeded(), not(eq(variables['skip-github'], 'TRUE')))
|
||||
- bash: |
|
||||
set -euo pipefail
|
||||
|
||||
@ -152,7 +151,7 @@ jobs:
|
||||
name: backup_to_gcs
|
||||
env:
|
||||
GCRED: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
||||
condition: not(eq(variables['skip-github'], 'TRUE'))
|
||||
condition: and(succeeded(), not(eq(variables['skip-github'], 'TRUE')))
|
||||
- bash: |
|
||||
set -euo pipefail
|
||||
msg=$(git log -n1 --format=%b HEAD | head -1)
|
||||
|
@ -152,4 +152,3 @@ steps:
|
||||
END
|
||||
echo "##vso[task.setvariable variable=${{parameters.var_name}}]$TMP"
|
||||
displayName: install Bash lib
|
||||
condition: always()
|
||||
|
Loading…
Reference in New Issue
Block a user