Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon site
Commits
6e95ca40
Commit
6e95ca40
authored
5 years ago
by
nrbffs
Browse files
Options
Downloads
Patches
Plain Diff
CI: take GLUON_BRANCH from build environment if specified
parent
450adcf4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
CI: take GLUON_BRANCH from build environment if specified
Pipeline
#25
passed
5 years ago
Stage: build
Stage: package
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get-gluon-branch.sh
+15
-17
15 additions, 17 deletions
get-gluon-branch.sh
with
15 additions
and
17 deletions
get-gluon-branch.sh
+
15
−
17
View file @
6e95ca40
...
@@ -6,25 +6,23 @@ set -o pipefail
...
@@ -6,25 +6,23 @@ set -o pipefail
# autoupdater
# autoupdater
# ====
# ====
#
#
# For commit builds, the autoupdater shall be off, i.e. GLUON_BRANCH unset.
# This script prints the name of the autoupdater branch depending on the build
# For nightly, GLUON_BRANCH must be nightly.
# configuration. Its output is suitable for use as the GLUON_BRANCH build
# For beta, GLUON_BRANCH must be beta.
# variable of gluon.
# For stable, GLUON_BRANCH must be stable.
#
# The idea is to take whatever comes in the GLUON_BRANCH build variable,
gluon_branch
=
""
# except when this value is not one of the well-known branch names; then fall
# back to 'nightly'.
if
[[
"
${
CI_PIPELINE_SOURCE
:-}
"
=
"schedule"
]]
;
then
default_gluon_branch_name
=
"nightly"
gluon_branch
=
"nightly"
fi
case
"
${
CI_COMMIT_TAG
:-}
"
in
case
"
${
GLUON_BRANCH
:-}
"
in
beta/
*
)
"nightly"
|
"beta"
|
"stable"
)
gluon_branch
=
"
beta
"
gluon_branch
=
"
$GLUON_BRANCH
"
;;
;;
stable/
*
)
*
)
:
gluon_branch
=
"
stabl
e"
gluon_branch
=
"
$default_gluon_branch_nam
e
"
;;
;;
esac
esac
# Else: Commit build
echo
$gluon_branch
echo
$gluon_branch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment