Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philippe
FFS Gluon site
Commits
6e95ca40
Commit
6e95ca40
authored
Jun 09, 2019
by
nrbffs
Browse files
CI: take GLUON_BRANCH from build environment if specified
parent
450adcf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
get-gluon-branch.sh
View file @
6e95ca40
...
...
@@ -6,25 +6,23 @@ set -o pipefail
# autoupdater
# ====
#
# For commit builds, the autoupdater shall be off, i.e. GLUON_BRANCH unset.
# For nightly, GLUON_BRANCH must be nightly.
# For beta, GLUON_BRANCH must be beta.
# For stable, GLUON_BRANCH must be stable.
gluon_branch
=
""
# This script prints the name of the autoupdater branch depending on the build
# configuration. Its output is suitable for use as the GLUON_BRANCH build
# variable of gluon.
#
# The idea is to take whatever comes in the GLUON_BRANCH build variable,
# except when this value is not one of the well-known branch names; then fall
# back to 'nightly'.
if
[[
"
${
CI_PIPELINE_SOURCE
:-}
"
=
"schedule"
]]
;
then
gluon_branch
=
"nightly"
fi
default_gluon_branch_name
=
"nightly"
case
"
${
CI_COMMIT_TAG
:-}
"
in
beta/
*
)
gluon_branch
=
"
beta
"
;;
stable/
*
)
gluon_branch
=
"
stabl
e"
;;
case
"
${
GLUON_BRANCH
:-}
"
in
"nightly"
|
"beta"
|
"stable"
)
gluon_branch
=
"
$GLUON_BRANCH
"
;;
*
)
:
gluon_branch
=
"
$default_gluon_branch_nam
e
"
;;
esac
# Else: Commit build
echo
$gluon_branch
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment