mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
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:
parent
428cd00f9d
commit
f6d40866a7
1 changed files with 4 additions and 1 deletions
5
ci/dra_upload.sh
Executable file → Normal file
5
ci/dra_upload.sh
Executable file → Normal 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue