Files
alfresco-community-repo/scripts/zip-artifacts.sh
Raluca Munteanu fac128ec67 APPS-241: Set up pre-commit plugin and enterprise release step
- Added enterprise release stage and used existing configuration as
      the one for community release
2020-10-09 16:34:58 +03:00

20 lines
798 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ $1 == 'community' ]; then
mkdir "artifacts_dir"
cp rm-community/rm-community-repo/target/alfresco-rm-*community*amp artifacts_dir
cp rm-community/rm-community-share/target/alfresco-rm-*community*amp artifacts_dir
cp rm-community/rm-community-rest-api-explorer/target/alfresco-rm-*community*war artifacts_dir
cd artifacts_dir
zip alfresco-rm-community-${RELEASE_VERSION}.zip *amp
ls artifacts_dir
elif [ $1 == "enterprise" ]; then
mkdir "artifacts_dir"
cp rm-enterprise/rm-enterprise-repo/target/alfresco-rm-*enterprise*amp artifacts_dir
cp rm-enterprise/rm-enterprise-share/target/alfresco-rm-*enterprise*amp artifacts_dir
cd artifacts_dir
zip alfresco-rm-enterprise-${RELEASE_VERSION}.zip *amp
ls artifacts_dir
fi