Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
oai-cn5g-fed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Thierry Turletti
oai-cn5g-fed
Commits
0613f564
Commit
0613f564
authored
4 years ago
by
Raphael Defosseux
Browse files
Options
Downloads
Patches
Plain Diff
CI: adding NRF as submodules
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
a2fcdc1c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitmodules
+3
-0
3 additions, 0 deletions
.gitmodules
ci-scripts/Jenkinsfile-GitLab-Docker
+13
-3
13 additions, 3 deletions
ci-scripts/Jenkinsfile-GitLab-Docker
component/oai-nrf
+1
-0
1 addition, 0 deletions
component/oai-nrf
scripts/syncComponents.sh
+16
-0
16 additions, 0 deletions
scripts/syncComponents.sh
with
33 additions
and
3 deletions
.gitmodules
+
3
−
0
View file @
0613f564
...
...
@@ -7,3 +7,6 @@
[submodule "component/oai-upf-equivalent"]
path = component/oai-upf-equivalent
url = https://github.com/OPENAIRINTERFACE/openair-spgwu-tiny.git
[submodule "component/oai-nrf"]
path = component/oai-nrf
url = https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-nrf.git
This diff is collapsed.
Click to expand it.
ci-scripts/Jenkinsfile-GitLab-Docker
+
13
−
3
View file @
0613f564
...
...
@@ -57,6 +57,8 @@ def scmEvent = false
def
upstreamEvent
=
false
// Default tags / branches --> could be passed on by upstream job or by PR content
def
nrfTag
=
'develop'
def
nrfBranch
=
'develop'
def
amfTag
=
'develop'
def
amfBranch
=
'develop'
def
smfTag
=
'develop'
...
...
@@ -136,6 +138,14 @@ pipeline {
}
if
(
upstreamEvent
)
{
if
(
params
.
NRF_TAG
!=
null
)
{
nrfTag
=
params
.
NRF_TAG
echo
"Upstream Job passed NRF_TAG to use: ${nrfTag}"
}
if
(
params
.
NRF_BRANCH
!=
null
)
{
nrfBranch
=
params
.
NRF_BRANCH
echo
"Upstream Job passed NRF_BRANCH to use: ${nrfBranch}"
}
if
(
params
.
AMF_TAG
!=
null
)
{
amfTag
=
params
.
AMF_TAG
echo
"Upstream Job passed AMF_TAG to use: ${amfTag}"
...
...
@@ -157,13 +167,13 @@ pipeline {
sh
'git checkout -f '
+
upstreamTagToUse
sh
"zip -r -qq oai-cn5g-fed.zip .git"
sh
"mkdir -p archives DS-TEST-RESULTS"
sh
'./scripts/syncComponents.sh --amf-branch '
+
amfBranch
+
' --smf-branch '
+
smfBranch
+
' --spgwu-tiny-branch '
+
spgwuBranch
sh
'./scripts/syncComponents.sh
--nrf-branch '
+
nrfBranch
+
'
--amf-branch '
+
amfBranch
+
' --smf-branch '
+
smfBranch
+
' --spgwu-tiny-branch '
+
spgwuBranch
if
(
new_host_flag
)
{
// Prepare the workspace in remote server
copyTo2ndServer
(
'oai-cn5g-fed.zip'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'git clean -x -d -f > /dev/null 2>&1'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'mkdir -p archives DS-TEST-RESULTS'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'./scripts/syncComponents.sh --amf-branch '
+
amfBranch
+
' --smf-branch '
+
smfBranch
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'./scripts/syncComponents.sh
--nrf-branch '
+
nrfBranch
+
'
--amf-branch '
+
amfBranch
+
' --smf-branch '
+
smfBranch
,
new_host_flag
,
new_host_user
,
new_host
)
}
}
if
(
scmEvent
)
{
...
...
@@ -187,7 +197,7 @@ pipeline {
}
if
((!
upstreamEvent
)
&&
(!
scmEvent
))
{
sh
"git clean -x -d -f > /dev/null 2>&1"
sh
'./scripts/syncComponents.sh --amf-branch '
+
amfBranch
+
' --smf-branch '
+
smfBranch
+
' --spgwu-tiny-branch '
+
spgwuBranch
sh
'./scripts/syncComponents.sh
--nrf-branch '
+
nrfBranch
+
'
--amf-branch '
+
amfBranch
+
' --smf-branch '
+
smfBranch
+
' --spgwu-tiny-branch '
+
spgwuBranch
sh
"mkdir -p archives DS-TEST-RESULTS"
}
}
...
...
This diff is collapsed.
Click to expand it.
oai-nrf
@
738473e2
Subproject commit 738473e2d16d78569acb8ded41a363bac8c0deeb
This diff is collapsed.
Click to expand it.
scripts/syncComponents.sh
+
16
−
0
View file @
0613f564
...
...
@@ -36,6 +36,9 @@ function usage {
echo
""
echo
"Options:"
echo
"--------"
echo
" --nrf-branch ####"
echo
" Specify the source branch for the OAI-NRF component"
echo
""
echo
" --amf-branch ####"
echo
" Specify the source branch for the OAI-AMF component"
echo
""
...
...
@@ -50,6 +53,7 @@ function usage {
echo
""
}
NRF_BRANCH
=
'develop'
AMF_BRANCH
=
'develop'
SMF_BRANCH
=
'develop'
SPGWU_BRANCH
=
'master'
...
...
@@ -66,6 +70,12 @@ case $key in
usage
exit
0
;;
--nrf-branch
)
NRF_BRANCH
=
"
$2
"
doDefault
=
0
shift
shift
;;
--amf-branch
)
AMF_BRANCH
=
"
$2
"
doDefault
=
0
...
...
@@ -94,6 +104,7 @@ esac
done
echo
"---------------------------------------------------------"
echo
"OAI-NRF component branch :
${
NRF_BRANCH
}
"
echo
"OAI-AMF component branch :
${
AMF_BRANCH
}
"
echo
"OAI-SMF component branch :
${
SMF_BRANCH
}
"
echo
"OAI-SPGW-U component branch :
${
SPGWU_BRANCH
}
"
...
...
@@ -112,6 +123,11 @@ if [ $doDefault -eq 1 ]
then
git submodule foreach
'git fetch --prune && git checkout develop && git pull origin develop'
>
/dev/null 2>&1
else
pushd
component/oai-nrf
git fetch
--prune
>
/dev/null 2>&1
git checkout
$NRF_BRANCH
>
/dev/null 2>&1
git pull origin
$NRF_BRANCH
>
/dev/null 2>&1
popd
pushd
component/oai-amf
git fetch
--prune
>
/dev/null 2>&1
git checkout
$AMF_BRANCH
>
/dev/null 2>&1
...
...
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