Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
025c481c
Commit
025c481c
authored
Jul 16, 2021
by
ismail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: pipeline updated to trigger the sub OC FED pipeline
Signed-off-by:
ismail
<
mohammed.ismail@openairinterface.org
>
parent
ecc7eefe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
22 deletions
+64
-22
ci-scripts/Jenkinsfile-GitLab-Docker
ci-scripts/Jenkinsfile-GitLab-Docker
+64
-22
No files found.
ci-scripts/Jenkinsfile-GitLab-Docker
View file @
025c481c
...
@@ -367,10 +367,12 @@ pipeline {
...
@@ -367,10 +367,12 @@ pipeline {
}
}
}
}
}
}
stage
(
'Testing in CN-5G-FED environment'
)
{
stage
(
'Testing whole 5g Core Network Functions'
)
{
parallel
{
stage
(
'Testing in CN-5G-FED Docker environment'
)
{
steps
{
steps
{
script
{
script
{
gitlabCommitStatus
(
name:
"Test with DsTester
"
)
{
gitlabCommitStatus
(
name:
"Test with DsTester on Docker environment
"
)
{
localStatus
=
build
job:
params
.
CN5G_FED_PipelineName
,
localStatus
=
build
job:
params
.
CN5G_FED_PipelineName
,
parameters:
[
parameters:
[
string
(
name:
'AMF_TAG'
,
value:
String
.
valueOf
(
amf_tag
)),
string
(
name:
'AMF_TAG'
,
value:
String
.
valueOf
(
amf_tag
)),
...
@@ -379,9 +381,9 @@ pipeline {
...
@@ -379,9 +381,9 @@ pipeline {
localResult
=
localStatus
.
getResult
()
localResult
=
localStatus
.
getResult
()
if
(
localStatus
.
resultIsBetterOrEqualTo
(
'SUCCESS'
))
{
if
(
localStatus
.
resultIsBetterOrEqualTo
(
'SUCCESS'
))
{
echo
"
Federation Test Job is OK"
echo
"Docker
Federation Test Job is OK"
}
else
{
}
else
{
echo
"
Federation Test Job is KO"
echo
"Docker
Federation Test Job is KO"
sh
"ci-scripts/fail.sh"
sh
"ci-scripts/fail.sh"
}
}
}
}
...
@@ -397,6 +399,38 @@ pipeline {
...
@@ -397,6 +399,38 @@ pipeline {
}
}
}
}
}
}
stage
(
'Testing in CN-5G-FED OC environment'
)
{
steps
{
script
{
gitlabCommitStatus
(
name:
"Test with DsTester on OC environment"
)
{
localStatus
=
build
job:
params
.
CN5G_FED_OC_PipelineName
,
parameters:
[
string
(
name:
'AMF_TAG'
,
value:
String
.
valueOf
(
amf_tag
)),
string
(
name:
'AMF_BRANCH'
,
value:
String
.
valueOf
(
amf_branch
))
],
propagate:
false
localResult
=
localStatus
.
getResult
()
if
(
localStatus
.
resultIsBetterOrEqualTo
(
'SUCCESS'
))
{
echo
"OC Federation Test Job is OK"
}
else
{
echo
"OC Federation Test Job is KO"
sh
"ci-scripts/fail.sh"
}
}
}
}
post
{
always
{
script
{
copyArtifacts
(
projectName:
params
.
CN5G_FED_OC_PipelineName
,
filter:
'*_results_oai_cn5g_oc.html'
,
selector:
lastCompleted
())
}
}
}
}
}
}
}
}
post
{
post
{
success
{
success
{
...
@@ -472,6 +506,10 @@ pipeline {
...
@@ -472,6 +506,10 @@ pipeline {
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_LINK#${gitlabMergeRequestLink}#g' *_results_oai_amf_bt.html"
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_LINK#${gitlabMergeRequestLink}#g' *_results_oai_amf_bt.html"
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${env.gitlabMergeRequestTitle}#' *_results_oai_amf_bt.html"
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${env.gitlabMergeRequestTitle}#' *_results_oai_amf_bt.html"
}
}
if
(
fileExists
(
'test_results_oai_cn5g_oc.html'
))
{
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_LINK#${gitlabMergeRequestLink}#g' *_results_oai_cn5g_oc.html"
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${env.gitlabMergeRequestTitle}#' *_results_oai_cn5g_oc.html"
}
}
else
{
}
else
{
sh
"python3 ci-scripts/generateHtmlReport.py --job_name=${JOB_NAME} --job_id=${BUILD_ID} --job_url=${BUILD_URL} --git_url=${GIT_URL} --git_src_branch=${GIT_BRANCH} --git_src_commit=${GIT_COMMIT}"
sh
"python3 ci-scripts/generateHtmlReport.py --job_name=${JOB_NAME} --job_id=${BUILD_ID} --job_url=${BUILD_URL} --git_url=${GIT_URL} --git_src_branch=${GIT_BRANCH} --git_src_commit=${GIT_COMMIT}"
}
}
...
@@ -488,6 +526,10 @@ pipeline {
...
@@ -488,6 +526,10 @@ pipeline {
sh
"sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' *_results_oai_amf_bt.html"
sh
"sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' *_results_oai_amf_bt.html"
archiveArtifacts
artifacts:
'*_results_oai_amf_bt.html'
archiveArtifacts
artifacts:
'*_results_oai_amf_bt.html'
}
}
if
(
fileExists
(
'test_results_oai_cn5g_oc.html'
))
{
sh
"sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' *_results_oai_cn5g_oc.html"
archiveArtifacts
artifacts:
'*_results_oai_cn5g_oc.html'
}
// Sending email to commiter
// Sending email to commiter
if
(
params
.
sendToCommitterEmail
!=
null
)
{
if
(
params
.
sendToCommitterEmail
!=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment