alfresco-transform-core/_ci/prepare_release_deploy.sh
DenisGabriela a9218b16d3
ATS-421 : Create Travis build for "alfresco-transform-core" (#21)
* ATS-421 : ATS-400: Create Travis build for "alfresco-transform-core"
   - rename mvn profile from 'enterpriseDocker' to 'local'
   - add config to publish docker image on both Quay and Docker
   - remove unused 'master' profile - similar to ATS, publish images only from master branch and on Release
   - update <distributionManagement> to publish artefacts to Nexus public (rather than Enterprise Releases)
   - add travis build configs
   - include SP branches to travis build
  - add documentation on build&release process
2019-05-15 13:30:23 +03:00

25 lines
701 B
Bash

#!/usr/bin/env bash
echo "========================== Starting Prepare Release 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)
mkdir -p deploy_dir
# Download the WhiteSource report
mvn org.alfresco:whitesource-downloader-plugin:inventoryReport \
-N \
"-Dorg.whitesource.product=Transform Service" \
-DsaveReportAs=deploy_dir/3rd-party.xlsx
echo "Local deploy directory content:"
ls -lA deploy_dir
popd
set +vex
echo "========================== Finishing Prepare Release Deploy Script =========================="