Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
2c81050b
Commit
2c81050b
authored
5 years ago
by
Oz Linden
Committed by
Andrey Lihatskiy
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
SL-12615: Support a branch-specific setting for viewer_channel in TeamCity builds
parent
c5da1b08
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+17
-0
17 additions, 0 deletions
build.sh
with
17 additions
and
0 deletions
build.sh
+
17
−
0
View file @
2c81050b
...
@@ -259,6 +259,23 @@ then
...
@@ -259,6 +259,23 @@ then
export
additional_packages
=
export
additional_packages
=
fi
fi
begin_section
"select viewer channel"
# Look for a branch-specific viewer_channel setting
# changeset_branch is set in the sling-buildscripts
viewer_build_branch
=
$(
echo
-n
"
${
changeset_branch
:-
$(
repo_branch
${
BUILDSCRIPTS_SRC
:-
$(
pwd
)
}
)
}
"
|
tr
-Cs
'A-Za-z0-9_'
'_'
|
sed
-E
's/^_+//; s/_+$//'
)
if
[
-n
"
$viewer_build_branch
"
]
then
branch_viewer_channel_var
=
"
${
viewer_build_branch
}
_viewer_channel"
if
[
-n
"
${
!branch_viewer_channel_var
}
"
]
then
viewer_channel
=
"
${
!branch_viewer_channel_var
}
"
record_event
"Overriding viewer_channel for branch '
$changeset_branch
' to '
$viewer_channel
'"
else
record_event
"No branch-specific viewer_channel for branch '
$viewer_build_branch
'; to set a branch build channel set '
$branch_viewer_channel_var
'"
fi
fi
end_section
"select viewer channel"
python_cmd
"
$helpers
/codeticket.py"
addinput
"Viewer Channel"
"
${
viewer_channel
}
"
python_cmd
"
$helpers
/codeticket.py"
addinput
"Viewer Channel"
"
${
viewer_channel
}
"
initialize_version
# provided by buildscripts build.sh; sets version id
initialize_version
# provided by buildscripts build.sh; sets version id
...
...
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