Skip to content

Commit

Permalink
feat(ci): adding 5GCN tutorial check to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Defosseux <[email protected]>
  • Loading branch information
rdefosse committed Feb 7, 2022
1 parent 729000e commit f3d7a47
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
30 changes: 30 additions & 0 deletions ci-scripts/Jenkinsfile-GitHub-Docker
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,36 @@ pipeline {
}
}
}
stage ('Testing the 5GCN tutorials') {
steps {
script {
gitlabCommitStatus(name: "Test 5GCN tutorials") {
localStatus = build job: 'OAI-CN5G-Tutorials-Check',
parameters: [
string(name: 'SPGWU_TAG', value: String.valueOf(spgwu_tag)),
string(name: 'SPGWU_BRANCH', value: String.valueOf(spgwu_branch))
], propagate: false
localResult = localStatus.getResult()

if (localStatus.resultIsBetterOrEqualTo('SUCCESS')) {
echo "Tutorials Test Job is OK"
} else {
echo "Tutorials Test Job is KO"
sh "ci-scripts/fail.sh"
}
}
}
}
post {
always {
script {
copyArtifacts(projectName: 'OAI-CN5G-Tutorials-Check',
filter: '*_results_oai_cn5g*.html',
selector: lastCompleted())
}
}
}
}
}
}
// For the moment it is Docker-Hub, but we might have a new one internally.
Expand Down
4 changes: 3 additions & 1 deletion ci-scripts/generateHtmlReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ def generateHeader(self):
self.file.write(buildSummary)

cwd = os.getcwd()
test_reports = ['test_results_oai_epc', 'test_results_magma_epc_rhel8', 'test_results_oai_cn5g', 'test_results_oai_cn5g_oc']
test_reports = ['test_results_oai_epc', 'test_results_magma_epc_rhel8', \
'test_results_oai_cn5g_basic', 'test_results_oai_cn5g_mini', \
'test_results_oai_cn5g_oc', 'test_results_oai_cn5g_tutorials']
for test in test_reports:
if os.path.isfile(cwd + '/' + test + '.html'):
newEpcReport = open(cwd + '/' + test + '_new.html', 'w')
Expand Down

0 comments on commit f3d7a47

Please sign in to comment.