Moved release versioning to global variables to be shared accross stages

Company release stage also needs access to release version.
Run full build:
[trigger release][trigger company release]
This commit is contained in:
David Edwards
2020-03-03 15:38:56 +00:00
parent ec254dc26a
commit 676013d4d3
+4 -6
View File
@@ -16,6 +16,10 @@ before_cache:
env:
global:
- VERSION_EDITION=Community
# Must be in the format <alfresco-version>-<additional_versioning> ie. 6.3.0-repo-xxxx-x or 6.3.0-A-x
- release_version=6.3.0-repo-4735-2-13
- development_version=6.3.0-SNAPSHOT
- COMM_RELEASE_VERSION=202003-test-release
branches:
only:
@@ -105,10 +109,6 @@ matrix:
# only on develop or master branch
if: commit_message ~= /\[trigger release\]/ AND fork = false AND branch = feature/REPO-4735_Add-release-stages-2 AND commit_message !~ /\[no-release\]/
# Leaving blank will auto increment the
env:
# Must be in the format <alfresco-version>-<additional_versioning> ie. 6.3.0-repo-xxxx-x or 6.3.0-A-x
- release_version=6.3.0-repo-4735-2-13
- development_version=6.3.0-SNAPSHOT
install: skip
# Fail the job if there is a docker image tag that matches the release_version (or project version in the POM if not set)
before_script: bash ./scripts/travis/verifyReleaseTag.sh
@@ -136,8 +136,6 @@ matrix:
# only on master branch
if: commit_message ~= /\[trigger company release\]/ AND fork = false AND branch = feature/REPO-4735_Add-release-stages-2 AND commit_message !~ /\[no-release\]/
name: "Copy to S3 Release"
env:
- COMM_RELEASE_VERSION=202003-test-release
install: skip # Nothing to build/install as we are just copying from S3 buckets
before_deploy: pip install awscli
delpoy: