mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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
This commit is contained in:
25
.travis.yml
25
.travis.yml
@@ -136,5 +136,26 @@ jobs:
|
|||||||
|
|
||||||
- name: "Enterprise Release"
|
- name: "Enterprise Release"
|
||||||
stage: Release and Publish
|
stage: Release and Publish
|
||||||
script:
|
stage: Release
|
||||||
- echo "Enterprise Release"
|
if: fork = false AND (branch = master OR branch =~ /release\/.*/) AND type != pull_request AND commit_message =~ /\[.*release .*\]/
|
||||||
|
before_script:
|
||||||
|
bash scripts/set-release-variables.sh
|
||||||
|
script:
|
||||||
|
- echo "Enterprise Release"
|
||||||
|
- bash scripts/release.sh enterprise
|
||||||
|
before_deploy:
|
||||||
|
- bash scripts/zip-artifacts.sh enterprise
|
||||||
|
deploy:
|
||||||
|
- provider: s3
|
||||||
|
access_key_id: ${ARTIFACTS_KEY}
|
||||||
|
secret_access_key: ${ARTIFACTS_SECRET}
|
||||||
|
region: "eu-west-1"
|
||||||
|
bucket: ${ARTIFACTS_UPLOAD_BUCKET}
|
||||||
|
upload_dir: ${ARTIFACTS_UPLOAD_DIR}
|
||||||
|
skip_cleanup: true
|
||||||
|
acl: private
|
||||||
|
local_dir: artifacts_dir
|
||||||
|
on:
|
||||||
|
all_branches: true
|
||||||
|
after_deploy:
|
||||||
|
- echo "Finished release and deployed to https://s3.console.aws.amazon.com/s3/buckets/${ARTIFACTS_UPLOAD_BUCKET}/${ARTIFACTS_UPLOAD_DIR}"
|
||||||
|
@@ -9,5 +9,11 @@ if [ $1 == 'community' ]; then
|
|||||||
cd artifacts_dir
|
cd artifacts_dir
|
||||||
zip alfresco-rm-community-${RELEASE_VERSION}.zip *amp
|
zip alfresco-rm-community-${RELEASE_VERSION}.zip *amp
|
||||||
ls artifacts_dir
|
ls artifacts_dir
|
||||||
#elif [ $1 == "enterprise" ]; then
|
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
|
fi
|
||||||
|
Reference in New Issue
Block a user