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
6f94eb4f
Commit
6f94eb4f
authored
Apr 10, 2020
by
Raphael Defosseux
Browse files
CI: adding HTML reporting
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
f73bc5a2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
6f94eb4f
...
...
@@ -30,3 +30,8 @@
*.exe
*.out
*.app
# CI artifacts
archives
src/oai_rules_result*
test_results_oai_smf.html
ci-scripts/Jenkinsfile-GitLab-Docker
View file @
6f94eb4f
...
...
@@ -259,6 +259,17 @@ pipeline {
if
(
fileExists
(
'docker_logs.zip'
))
{
archiveArtifacts
artifacts:
'docker_logs.zip'
}
// Generating the HTML report
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
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=${env.gitlabSourceBranch} --git_src_commit=${env.gitlabMergeRequestLastCommit} --git_pull_request=True --git_target_branch=${env.gitlabTargetBranch} --git_target_commit=${GIT_COMMIT}"
}
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
"sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' test_results_oai_smf.html"
if
(
fileExists
(
'test_results_oai_smf.html'
))
{
archiveArtifacts
artifacts:
'test_results_oai_smf.html'
}
}
}
}
...
...
ci-scripts/generateHtmlReport.py
0 → 100644
View file @
6f94eb4f
This diff is collapsed.
Click to expand it.
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