From 3350b27194e7dffd09f7741513f0a0b31641e5ef Mon Sep 17 00:00:00 2001 From: Gary Verhaegen Date: Mon, 17 Jan 2022 15:21:55 +0100 Subject: [PATCH] split-release: publish temp files to artifactory See discussion on #12412 for details. CHANGELOG_BEGIN CHANGELOG_END --- azure-pipelines.yml | 10 ---------- ci/publish-artifactory.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6bab47145a67..9757e5d6be6a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -216,16 +216,6 @@ jobs: eval "$(./dev-env/bin/dade-assist)" mkdir -p $(Build.StagingDirectory)/split-release ./ci/assembly-split-release-artifacts.sh $(release_tag) $(Build.StagingDirectory)/release-artifacts $(Build.StagingDirectory)/split-release - - bash: | - set -eou pipefail - - source $(bash-lib) - cd $(Build.StagingDirectory)/split-release - gcs "$GCRED" -m cp -r github gs://daml-data/split-releases/$(release_tag)/ - gcs "$GCRED" -m cp -r split-release gs://daml-data/split-releases/$(release_tag)/ - name: upload_to_gcs - env: - GCRED: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT) - bash: | set -euo pipefail ./ci/publish-artifactory.sh $(Build.StagingDirectory) $(release_tag) split diff --git a/ci/publish-artifactory.sh b/ci/publish-artifactory.sh index e5f98ee568a6..372b5cd4f63c 100755 --- a/ci/publish-artifactory.sh +++ b/ci/publish-artifactory.sh @@ -61,4 +61,12 @@ if [[ "$#" -lt 3 || $3 != "split" ]]; then EE_INSTALLER=daml-sdk-$RELEASE_TAG-windows-ee.exe push sdk-ee $EE_INSTALLER push sdk-ee $EE_INSTALLER.asc +else + # For the split release process, we publish intermediate artifacts to the + # assembly repo, under the daml folder. + SPLIT_DIR=$STAGING_DIR/split-release + cd $SPLIT_DIR + for file in $(find . -type f); do + push assembly/daml $file + done fi