Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
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
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Worker.N
openairinterface5G
Commits
5edb3e36
Commit
5edb3e36
authored
5 years ago
by
frtabu
Browse files
Options
Downloads
Patches
Plain Diff
add ci platform specific script support in oai-vm-tools
parent
c8870fbc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci-scripts/oai-ci-vm-tool
+15
-0
15 additions, 0 deletions
ci-scripts/oai-ci-vm-tool
with
15 additions
and
0 deletions
ci-scripts/oai-ci-vm-tool
+
15
−
0
View file @
5edb3e36
...
@@ -140,6 +140,19 @@ function command_options_usage {
...
@@ -140,6 +140,19 @@ function command_options_usage {
echo
""
echo
""
}
}
# function to set specific behavior depending on the TESTPLATFORM_OWNER variable
# which may be set by a jenkins server for exemple
function
platform_set
{
if
[
"
$TESTPLATFORM_OWNER
"
!=
""
]
then
echo
"Running on
$TESTPLATFORM_OWNER
platform"
if
[
-x
"
${
TESTPLATFORM_OWNER
}
_setenv.sh"
]
then
.
${
TESTPLATFORM_OWNER
}
_setenv.sh
fi
fi
}
function
setvar_usage
{
function
setvar_usage
{
declare
-A
HELP_VAR
declare
-A
HELP_VAR
HELP_VAR[
"VM_OSREL"
]=
"OS release to use in virtual machines"
HELP_VAR[
"VM_OSREL"
]=
"OS release to use in virtual machines"
...
@@ -315,6 +328,7 @@ function check_setvar {
...
@@ -315,6 +328,7 @@ function check_setvar {
exit
1
exit
1
}
}
platform_set
MY_DIR
=
$(
dirname
$(
readlink
-f
$0
))
MY_DIR
=
$(
dirname
$(
readlink
-f
$0
))
.
$MY_DIR
/createVM.sh
.
$MY_DIR
/createVM.sh
.
$MY_DIR
/buildOnVM.sh
.
$MY_DIR
/buildOnVM.sh
...
@@ -324,6 +338,7 @@ MY_DIR=$(dirname $(readlink -f $0))
...
@@ -324,6 +338,7 @@ MY_DIR=$(dirname $(readlink -f $0))
.
$MY_DIR
/reportBuildLocally.sh
.
$MY_DIR
/reportBuildLocally.sh
.
$MY_DIR
/reportTestLocally.sh
.
$MY_DIR
/reportTestLocally.sh
if
[
$#
-lt
1
]
if
[
$#
-lt
1
]
then
then
echo
"Syntax Error: too few arguments"
echo
"Syntax Error: too few arguments"
...
...
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