Skip to content

Commit

Permalink
try to fix paths in split-release (#12442)
Browse files Browse the repository at this point in the history
See #12435.

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
garyverhaegen-da authored Jan 17, 2022
1 parent 5922df6 commit 36a93ef
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ci/publish-artifactory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ RELEASE_TAG=$2
INPUTS=$STAGING_DIR/release-artifacts/artifactory

push() {
local file repository local_path md5 sha1
local file repository md5 sha1
repository=$1
file=$2
local_path=$INPUTS/${file}
md5=$(md5sum ${local_path} | awk '{print $1}')
sha1=$(sha1sum ${local_path} | awk '{print $1}')
md5=$(md5sum ${file} | awk '{print $1}')
sha1=$(sha1sum ${file} | awk '{print $1}')
curl -f \
-u "$AUTH" \
-H "X-Checksum-MD5:${md5}" \
-H "X-Checksum-SHA1:${sha1}" \
-X PUT \
-T ${local_path} \
-T ${file} \
https://digitalasset.jfrog.io/artifactory/${repository}/$RELEASE_TAG/${file}
}

Expand All @@ -32,6 +31,7 @@ SCRIPT_RUNNER=daml-script-$RELEASE_TAG.jar
NON_REPUDIATION=non-repudiation-$RELEASE_TAG-ee.jar
HTTP_JSON=http-json-$RELEASE_TAG-ee.jar

cd $INPUTS
push daml-trigger-runner $TRIGGER_RUNNER
push daml-trigger-runner $TRIGGER_RUNNER.asc
push daml-script-runner $SCRIPT_RUNNER
Expand Down Expand Up @@ -64,8 +64,7 @@ if [[ "$#" -lt 3 || $3 != "split" ]]; then
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
cd $STAGING_DIR/split-release
for file in $(find . -type f); do
push assembly/daml $file
done
Expand Down

0 comments on commit 36a93ef

Please sign in to comment.