From dd82d94c698b61e237df9645a7bd8209ca0dd236 Mon Sep 17 00:00:00 2001 From: Tom Page Date: Mon, 31 Jan 2022 14:54:43 +0000 Subject: [PATCH] ACS-2304 Copy license report to downloads bucket. (#1465) Also ensure the report contains information about the Repo _and_ Share. --- scripts/travis/copy_ags_to_release_bucket.sh | 6 +----- scripts/travis/copy_to_release_bucket.sh | 10 +--------- scripts/travis/prepare_staging_deploy.sh | 10 +++++++++- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/scripts/travis/copy_ags_to_release_bucket.sh b/scripts/travis/copy_ags_to_release_bucket.sh index 5f5a0bcd0..905026623 100644 --- a/scripts/travis/copy_ags_to_release_bucket.sh +++ b/scripts/travis/copy_ags_to_release_bucket.sh @@ -17,11 +17,7 @@ DESTINATION="s3://eu.dl.alfresco.com/release/community/RM/${RELEASE_VERSION}" printf "\n%s\n%s\n" "${SOURCE}" "${DESTINATION}" -aws s3 cp --acl private \ - "${SOURCE}/alfresco-governance-services-community-${RELEASE_VERSION}.zip" \ - "${DESTINATION}/alfresco-governance-services-community-${RELEASE_VERSION}.zip" - +aws s3 cp --acl private --recursive "${SOURCE}" "${DESTINATION}" set +vex echo "=========================== Finishing Copy to Release Bucket Script ==========================" - diff --git a/scripts/travis/copy_to_release_bucket.sh b/scripts/travis/copy_to_release_bucket.sh index e613476dc..a9eff092e 100755 --- a/scripts/travis/copy_to_release_bucket.sh +++ b/scripts/travis/copy_to_release_bucket.sh @@ -17,15 +17,7 @@ DESTINATION="s3://eu.dl.alfresco.com/release/community/${RELEASE_VERSION}-build- printf "\n%s\n%s\n" "${SOURCE}" "${DESTINATION}" -aws s3 cp --acl private \ - "${SOURCE}/alfresco.war" \ - "${DESTINATION}/alfresco.war" - -aws s3 cp --acl private \ - "${SOURCE}/alfresco-content-services-community-distribution-${RELEASE_VERSION}.zip" \ - "${DESTINATION}/alfresco-content-services-community-distribution-${RELEASE_VERSION}.zip" - +aws s3 cp --acl private --recursive "${SOURCE}" "${DESTINATION}" set +vex echo "=========================== Finishing Copy to Release Bucket Script ==========================" - diff --git a/scripts/travis/prepare_staging_deploy.sh b/scripts/travis/prepare_staging_deploy.sh index 97867fb55..ff98376e7 100755 --- a/scripts/travis/prepare_staging_deploy.sh +++ b/scripts/travis/prepare_staging_deploy.sh @@ -16,7 +16,15 @@ mkdir -p deploy_dir cp distribution/target/alfresco.war deploy_dir cp distribution/target/*-distribution*.zip deploy_dir # Create third party license csv file and add it to the deploy directory. -python3 ./third-party-license-overrides/thirdPartyLicenseCSVCreator.py --project "`pwd`" --version "${VERSION}" --combined --output "deploy_dir" +unzip deploy_dir/*-distribution*.zip -d deploy_dir/community-acs +zippaths="" +for file in `find deploy_dir/community-acs -name "*.amp" -o -name "*.war" -not -name "ROOT.war" -not -name "_vti_bin.war"` +do + zippaths+="$file|" +done +zippaths=${zippaths::-1} +python3 ./third-party-license-overrides/thirdPartyLicenseCSVCreator.py --zippaths "${zippaths}" --version "${VERSION}" --combined --output "deploy_dir" +rm -rf deploy_dir/community-acs echo "Local deploy directory content:" ls -lA deploy_dir