Skip to content

Commit

Permalink
Fix release stage (#2595)
Browse files Browse the repository at this point in the history
  • Loading branch information
evasques authored Oct 11, 2023
1 parent acbc396 commit bc1a2ac
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions scripts/ci/prepare_staging_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,26 @@ 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.
unzip deploy_dir/*-distribution*.zip -d deploy_dir/acs
zippaths=""
for file in `find deploy_dir/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/acs
echo "Local deploy directory content:"
ls -lA deploy_dir

# Create deploy directory for Share.
mkdir -p deploy_dir_share
cp distribution-share/target/*.war deploy_dir_share
cp distribution-share/target/*.zip deploy_dir_share
# Generate third party license csv for Share.
python3 ./third-party-license-overrides/thirdPartyLicenseCSVCreator.py --zip deploy_dir_share/*.war --version "${VERSION}" --combined --output "deploy_dir_share"
echo "Local Share deploy directory content:"
ls -lA deploy_dir_share

# 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/ags
zippaths=""
for file in `find deploy_dir_ags/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/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 =========================="

0 comments on commit bc1a2ac

Please sign in to comment.