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
df4d2ee8
Commit
df4d2ee8
authored
Jul 06, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix missing artifact
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
6fcd2706
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
15 deletions
+11
-15
ci-scripts/Jenkinsfile-GitLab-Docker
ci-scripts/Jenkinsfile-GitLab-Docker
+8
-0
ci-scripts/generateHtmlReport.py
ci-scripts/generateHtmlReport.py
+3
-15
No files found.
ci-scripts/Jenkinsfile-GitLab-Docker
View file @
df4d2ee8
...
@@ -467,6 +467,10 @@ pipeline {
...
@@ -467,6 +467,10 @@ pipeline {
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_LINK#${gitlabMergeRequestLink}#g' *_results_oai_cn5g.html"
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_LINK#${gitlabMergeRequestLink}#g' *_results_oai_cn5g.html"
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${env.gitlabMergeRequestTitle}#' *_results_oai_cn5g.html"
sh
"sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${env.gitlabMergeRequestTitle}#' *_results_oai_cn5g.html"
}
}
if
(
fileExists
(
'test_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"
}
}
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}"
}
}
...
@@ -479,6 +483,10 @@ pipeline {
...
@@ -479,6 +483,10 @@ pipeline {
sh
"sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' *_results_oai_cn5g.html"
sh
"sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' *_results_oai_cn5g.html"
archiveArtifacts
artifacts:
'*_results_oai_cn5g.html'
archiveArtifacts
artifacts:
'*_results_oai_cn5g.html'
}
}
if
(
fileExists
(
'test_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'
}
// Sending email to commiter
// Sending email to commiter
if
(
params
.
sendToCommitterEmail
!=
null
)
{
if
(
params
.
sendToCommitterEmail
!=
null
)
{
...
...
ci-scripts/generateHtmlReport.py
View file @
df4d2ee8
...
@@ -158,7 +158,9 @@ class HtmlReport():
...
@@ -158,7 +158,9 @@ class HtmlReport():
self
.
file
.
write
(
buildSummary
)
self
.
file
.
write
(
buildSummary
)
cwd
=
os
.
getcwd
()
cwd
=
os
.
getcwd
()
for
reportFile
in
glob
.
glob
(
'./*results_oai_cn5g.html'
):
for
reportFile
in
glob
.
glob
(
'./*results_oai_*.html'
):
if
reportFile
==
'./test_results_oai_amf.html'
:
continue
newEpcReport
=
open
(
cwd
+
'/'
+
str
(
reportFile
)
+
'.new'
,
'w'
)
newEpcReport
=
open
(
cwd
+
'/'
+
str
(
reportFile
)
+
'.new'
,
'w'
)
buildSummaryDone
=
True
buildSummaryDone
=
True
with
open
(
cwd
+
'/'
+
str
(
reportFile
),
'r'
)
as
originalEpcReport
:
with
open
(
cwd
+
'/'
+
str
(
reportFile
),
'r'
)
as
originalEpcReport
:
...
@@ -461,8 +463,6 @@ class HtmlReport():
...
@@ -461,8 +463,6 @@ class HtmlReport():
section_end_pattern
=
'build_amf --clean --Verbose --build-type Release --jobs'
section_end_pattern
=
'build_amf --clean --Verbose --build-type Release --jobs'
section_status
=
False
section_status
=
False
package_install
=
False
package_install
=
False
fmt_build_start
=
False
fmt_build_status
=
False
folly_build_start
=
False
folly_build_start
=
False
folly_build_status
=
False
folly_build_status
=
False
spdlog_build_start
=
False
spdlog_build_start
=
False
...
@@ -498,12 +498,6 @@ class HtmlReport():
...
@@ -498,12 +498,6 @@ class HtmlReport():
result
=
re
.
search
(
'cpprestsdk installation complete'
,
line
)
result
=
re
.
search
(
'cpprestsdk installation complete'
,
line
)
if
result
is
not
None
and
cpprest_build_start
:
if
result
is
not
None
and
cpprest_build_start
:
cpprest_build_status
=
True
cpprest_build_status
=
True
result
=
re
.
search
(
'Starting to install fmt'
,
line
)
if
result
is
not
None
:
fmt_build_start
=
True
result
=
re
.
search
(
'fmt installation complete'
,
line
)
if
result
is
not
None
and
fmt_build_start
:
fmt_build_status
=
True
result
=
re
.
search
(
'Starting to install folly'
,
line
)
result
=
re
.
search
(
'Starting to install folly'
,
line
)
if
result
is
not
None
:
if
result
is
not
None
:
folly_build_start
=
True
folly_build_start
=
True
...
@@ -551,12 +545,6 @@ class HtmlReport():
...
@@ -551,12 +545,6 @@ class HtmlReport():
cell_msg
+=
' ** cpprestsdk Installation: OK
\n
'
cell_msg
+=
' ** cpprestsdk Installation: OK
\n
'
else
:
else
:
cell_msg
+=
' ** cpprestsdk Installation: KO
\n
'
cell_msg
+=
' ** cpprestsdk Installation: KO
\n
'
if
base_image
:
cell_msg
+=
' ** fmt Installation: N/A
\n
'
elif
fmt_build_status
:
cell_msg
+=
' ** fmt Installation: OK
\n
'
else
:
cell_msg
+=
' ** fmt Installation: KO
\n
'
if
base_image
:
if
base_image
:
cell_msg
+=
' ** folly Installation: N/A
\n
'
cell_msg
+=
' ** folly Installation: N/A
\n
'
elif
folly_build_status
:
elif
folly_build_status
:
...
...
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