Backport PR #14619 to 7.17: Switch branch slector from major.minor to read the current branch name #14625

Switch branch selector from major.minor to read the current branch name

(cherry picked from commit ff8afb2293)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
This commit is contained in:
github-actions[bot] 2022-10-11 20:10:03 +02:00 committed by GitHub
parent 428cd00f9d
commit f6d40866a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
ci/dra_upload.sh Executable file → Normal file
View file

@ -10,7 +10,10 @@ export JRUBY_OPTS="-J-Xmx1g"
# e.g.: 8.6.0
# The suffix part like alpha1 etc is managed by the optional VERSION_QUALIFIER_OPT environment variable
STACK_VERSION=`cat versions.yml | sed -n 's/^logstash\:[[:space:]]\([[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\)$/\1/p'`
RELEASE_BRANCH=`cat versions.yml | sed -n 's/^logstash\:[[:space:]]\([[:digit:]]*\.[[:digit:]]*\)\.[[:digit:]]*$/\1/p'`
# This is the branch selector that needs to be passed to the release-manager
# It has to be the name of the branch which originates the artifacts.
RELEASE_BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ -n "$VERSION_QUALIFIER_OPT" ]; then
# Qualifier is passed from CI as optional field and specify the version postfix
# in case of alpha or beta releases: