mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2025-09-10 14:12:09 +00:00
ACS-2304 Upload license reports from acs-community-packaging release. (#1463)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -36,5 +36,6 @@ helm/alfresco-content-services-community/charts/*
|
|||||||
helm/alfresco-content-services-community/requirements.lock
|
helm/alfresco-content-services-community/requirements.lock
|
||||||
helm/alfresco-content-services-community*.tgz
|
helm/alfresco-content-services-community*.tgz
|
||||||
|
|
||||||
# Travis deployment folder
|
# Travis deployment folders
|
||||||
deploy_dir
|
deploy_dir
|
||||||
|
deploy_dir_ags
|
||||||
|
10
.travis.yml
10
.travis.yml
@@ -133,15 +133,7 @@ jobs:
|
|||||||
stage: release
|
stage: release
|
||||||
before_script: bash scripts/travis/verify_release_tag.sh
|
before_script: bash scripts/travis/verify_release_tag.sh
|
||||||
script: travis_wait 60 bash scripts/travis/maven_release.sh
|
script: travis_wait 60 bash scripts/travis/maven_release.sh
|
||||||
before_deploy:
|
before_deploy: source scripts/travis/prepare_staging_deploy.sh
|
||||||
# Move the final artifacts to a single folder (deploy_dir) to be copied to S3
|
|
||||||
- mkdir -p deploy_dir
|
|
||||||
- cp distribution/target/alfresco.war deploy_dir
|
|
||||||
- cp distribution/target/*-distribution*.zip deploy_dir
|
|
||||||
- ls -lA deploy_dir
|
|
||||||
- mkdir -p deploy_dir_ags
|
|
||||||
- cp distribution-ags/target/*.zip deploy_dir_ags
|
|
||||||
- ls -lA deploy_dir_ags
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: s3
|
- provider: s3
|
||||||
access_key_id: "${AWS_STAGING_ACCESS_KEY}"
|
access_key_id: "${AWS_STAGING_ACCESS_KEY}"
|
||||||
|
44
scripts/travis/prepare_staging_deploy.sh
Executable file
44
scripts/travis/prepare_staging_deploy.sh
Executable file
@@ -0,0 +1,44 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "========================== Starting Prepare Staging Deploy Script ==========================="
|
||||||
|
PS4="\[\e[35m\]+ \[\e[m\]"
|
||||||
|
set -vex
|
||||||
|
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
|
||||||
|
|
||||||
|
# Identify latest annotated tag (latest version)
|
||||||
|
export VERSION=$(git describe --abbrev=0 --tags)
|
||||||
|
|
||||||
|
# Get third party license scripts.
|
||||||
|
git clone --depth=1 https://github.com/Alfresco/third-party-license-overrides.git
|
||||||
|
|
||||||
|
# Move the final artifacts to a single folder (deploy_dir) to be copied to S3
|
||||||
|
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"
|
||||||
|
echo "Local deploy directory content:"
|
||||||
|
ls -lA deploy_dir
|
||||||
|
|
||||||
|
# Create deploy directory for AGS.
|
||||||
|
mkdir -p deploy_dir_ags
|
||||||
|
cp distribution-ags/target/*.zip deploy_dir_ags
|
||||||
|
# Generate third party license csv for AGS.
|
||||||
|
unzip deploy_dir_ags/*.zip -d deploy_dir_ags/community-ags
|
||||||
|
zippaths=""
|
||||||
|
for file in `find deploy_dir_ags/community-ags -name "*.amp" -o -name "*.war"`
|
||||||
|
do
|
||||||
|
zippaths+="$file|"
|
||||||
|
done
|
||||||
|
zippaths=${zippaths::-1}
|
||||||
|
python3 ./third-party-license-overrides/thirdPartyLicenseCSVCreator.py --zippaths ${zippaths} --version "${VERSION}" --combined --output "deploy_dir_ags"
|
||||||
|
rm -rf deploy_dir_ags/community-ags
|
||||||
|
echo "Local AGS deploy directory content:"
|
||||||
|
ls -lA deploy_dir_ags
|
||||||
|
|
||||||
|
# Tidy up.
|
||||||
|
rm -rf ./third-party-license-overrides
|
||||||
|
|
||||||
|
popd
|
||||||
|
set +vex
|
||||||
|
echo "========================== Finishing Prepare Staging Deploy Script =========================="
|
Reference in New Issue
Block a user