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
a2fcdc1c
Commit
a2fcdc1c
authored
4 years ago
by
Raphael Defosseux
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master' into ci-docker-compose
parents
d1600732
3e7565db
No related branches found
Branches containing commit
Tags
MIGRATION_OK_20200121_VERSION_A
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci-scripts/Jenkinsfile-GitLab-Docker
+7
-7
7 additions, 7 deletions
ci-scripts/Jenkinsfile-GitLab-Docker
scripts/syncComponents.sh
+17
-14
17 additions, 14 deletions
scripts/syncComponents.sh
with
24 additions
and
21 deletions
ci-scripts/Jenkinsfile-GitLab-Docker
+
7
−
7
View file @
a2fcdc1c
...
...
@@ -61,8 +61,8 @@ def amfTag = 'develop'
def
amfBranch
=
'develop'
def
smfTag
=
'develop'
def
smfBranch
=
'develop'
def
spgwuTag
=
'
develop
'
def
spgwuBranch
=
'
develop
'
def
spgwuTag
=
'
v1.1.0
'
def
spgwuBranch
=
'
master
'
//-------------------------------------------------------------------------------
// Pipeline start
...
...
@@ -130,8 +130,8 @@ pipeline {
for
(
cause
in
currentBuild
.
getBuildCauses
())
{
if
(
cause
.
toString
()
==~
/.*UpstreamCause.*/
)
{
upstreamEvent
=
true
}
else
{
scmEvent
=
true
//
} else {
//
scmEvent = true
}
}
...
...
@@ -157,7 +157,7 @@ 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
sh
'./scripts/syncComponents.sh --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
)
...
...
@@ -187,7 +187,7 @@ pipeline {
}
if
((!
upstreamEvent
)
&&
(!
scmEvent
))
{
sh
"git clean -x -d -f > /dev/null 2>&1"
sh
'./scripts/syncComponents.sh --
hss-branch '
+
hssBranch
+
' --mme
-branch '
+
mme
Branch
+
' --s
pgwc
-branch '
+
s
pgwc
Branch
+
' --spgwu-tiny-branch '
+
spgwuBranch
sh
'./scripts/syncComponents.sh --
amf
-branch '
+
amf
Branch
+
' --s
mf
-branch '
+
s
mf
Branch
+
' --spgwu-tiny-branch '
+
spgwuBranch
sh
"mkdir -p archives DS-TEST-RESULTS"
}
}
...
...
@@ -212,7 +212,7 @@ pipeline {
// Deploy and configure SMF
myShCmd
(
'python3 ./ci-scripts/dsTestDeployTools.py --action=DeploySMF --tag='
+
smfTag
,
new_host_flag
,
new_host_user
,
new_host
)
// Deploy and configure UPF
myShCmd
(
'python3 ./ci-scripts/dsTestDeployTools.py --action=DeployUPF --tag=
develop'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'python3 ./ci-scripts/dsTestDeployTools.py --action=DeployUPF --tag=
'
+
spgwuTag
,
new_host_flag
,
new_host_user
,
new_host
)
}
}
post
{
...
...
This diff is collapsed.
Click to expand it.
scripts/syncComponents.sh
+
17
−
14
View file @
a2fcdc1c
...
...
@@ -52,7 +52,7 @@ function usage {
AMF_BRANCH
=
'develop'
SMF_BRANCH
=
'develop'
SPGWU_BRANCH
=
'
develop
'
SPGWU_BRANCH
=
'
master
'
doDefault
=
1
...
...
@@ -78,12 +78,6 @@ case $key in
shift
shift
;;
--spgwc-branch
)
SPGWC_BRANCH
=
"
$2
"
doDefault
=
0
shift
shift
;;
--spgwu-tiny-branch
)
SPGWU_BRANCH
=
"
$2
"
doDefault
=
0
...
...
@@ -106,22 +100,31 @@ echo "OAI-SPGW-U component branch : ${SPGWU_BRANCH}"
echo
"---------------------------------------------------------"
# First do a clean-up
git submodule deinit
--all
--force
echo
"git submodule deinit --all --force"
git submodule deinit
--all
--force
>
/dev/null 2>&1
git submodule init
git submodule update
echo
"git submodule init"
git submodule init
>
/dev/null 2>&1
echo
"git submodule update"
git submodule update
>
/dev/null 2>&1
if
[
$doDefault
-eq
1
]
then
git submodule foreach
'git fetch --prune && git checkout develop && git pull origin develop'
git submodule foreach
'git fetch --prune && git checkout develop && git pull origin develop'
>
/dev/null 2>&1
else
pushd
component/oai-amf
git fetch
--prune
&&
git checkout
$AMF_BRANCH
&&
git pull origin
$AMF_BRANCH
git fetch
--prune
>
/dev/null 2>&1
git checkout
$AMF_BRANCH
>
/dev/null 2>&1
git pull origin
$AMF_BRANCH
>
/dev/null 2>&1
popd
pushd
component/oai-smf
git fetch
--prune
&&
git checkout
$SMF_BRANCH
&&
git pull origin
$SMF_BRANCH
git fetch
--prune
>
/dev/null 2>&1
git checkout
$SMF_BRANCH
>
/dev/null 2>&1
git pull origin
$SMF_BRANCH
>
/dev/null 2>&1
popd
pushd
component/oai-upf-equivalent
git fetch
--prune
&&
git checkout
$SPGWU_BRANCH
&&
git pull origin
$SPGWU_BRANCH
git fetch
--prune
>
/dev/null 2>&1
git checkout
$SPGWU_BRANCH
>
/dev/null 2>&1
git pull origin
$SPGWU_BRANCH
>
/dev/null 2>&1
popd
fi
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