Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
cn5g
oai-cn5g-smf
Commits
9ffbf988
Commit
9ffbf988
authored
Jul 12, 2021
by
Raphael Defosseux
Browse files
Merge branch 'fix-ci' into 'develop'
CI: fix Merge Request URL recovery See merge request
!78
parents
7e3ffb6b
a4702bbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
ci-scripts/Jenkinsfile-GitLab-Docker
View file @
9ffbf988
...
...
@@ -121,7 +121,8 @@ pipeline {
script
{
sh
"git clean -x -d -f > /dev/null 2>&1"
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
gitlabMergeRequestLink
=
sh
"curl --silent \"https://gitlab.eurecom.fr/api/v4/projects/oai%2Fcn5g%2Foai-cn5g-smf/merge_requests/${env.gitlabMergeRequestIid}\" | jq .web_url | sed 's#\"##g'"
gitlabMergeRequestLink
=
sh
returnStdout:
true
,
script:
"curl --silent 'https://gitlab.eurecom.fr/api/v4/projects/oai%2Fcn5g%2Foai-cn5g-smf/merge_requests/${env.gitlabMergeRequestIid}' | jq .web_url | sed 's#\"##g'"
gitlabMergeRequestLink
=
gitlabMergeRequestLink
.
trim
()
echo
"========= THIS IS A MERGE REQUEST =========="
echo
"MR ID is ${env.gitlabMergeRequestIid}"
echo
"MR LINK is ${gitlabMergeRequestLink}"
...
...
ci-scripts/generateHtmlReport.py
View file @
9ffbf988
...
...
@@ -852,12 +852,11 @@ class HtmlReport():
else
:
result
=
re
.
search
(
'oai-smf *develop'
,
line
)
if
result
is
not
None
:
if
variant
==
'docker'
:
result
=
re
.
search
(
'ago *([0-9A-Z]+)'
,
line
)
else
:
result
=
re
.
search
(
'ago *([0-9]+ [A-Z]+)'
,
line
)
result
=
re
.
search
(
'ago *([0-9A-Z ]+)'
,
line
)
if
result
is
not
None
:
size
=
result
.
group
(
1
)
if
variant
==
'docker'
:
size
=
re
.
sub
(
'MB'
,
' MB'
,
size
)
status
=
True
logfile
.
close
()
if
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