mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2025-09-10 14:12:09 +00:00
24 lines
808 B
Bash
Executable File
24 lines
808 B
Bash
Executable File
#!/usr/bin/env bash
|
|
echo "=========================== Starting Copy to Release Bucket Script ==========================="
|
|
PS4="\[\e[35m\]+ \[\e[m\]"
|
|
set -vex
|
|
|
|
#
|
|
# Copy from S3 Release bucket to S3 eu.dl bucket
|
|
#
|
|
|
|
if [ -z "${RELEASE_VERSION}" ]; then
|
|
echo "Please provide a RELEASE_VERSION in the format <acs-version>-<additional-info> (e.g. 7.2.0-A2)"
|
|
exit 1
|
|
fi
|
|
|
|
SOURCE="s3://alfresco-artefacts-staging/alfresco-content-services-community/release/${BRANCH_NAME}/${BUILD_NUMBER}"
|
|
DESTINATION="s3://eu.dl.alfresco.com/release/community/${RELEASE_VERSION}-build-${BUILD_NUMBER}"
|
|
|
|
printf "\n%s\n%s\n" "${SOURCE}" "${DESTINATION}"
|
|
|
|
aws s3 cp --acl private --recursive "${SOURCE}" "${DESTINATION}"
|
|
|
|
set +vex
|
|
echo "=========================== Finishing Copy to Release Bucket Script =========================="
|