Skip to content
Snippets Groups Projects
Commit 9db654d6 authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

CI: retrieve HTML report from slave job and archive it

parent 9766eaa1
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ def sendSocialMediaMessage(pipeChannel, pipeColor, pipeMessage) {
}
def doRedHatBuild = false
def FDD_Band7_B210_Status
pipeline {
agent {
......@@ -265,7 +266,7 @@ pipeline {
gitlabCommitStatus(name: "Test-FDD-Band7") {
script {
if ("MERGE".equals(env.gitlabActionType)) {
build job: 'eNB-CI-FDD-Band7-B210',
FDD_Band7_B210_Status = build job: 'eNB-CI-FDD-Band7-B210',
parameters: [
string(name: 'eNB_Repository', value: String.valueOf(GIT_URL)),
string(name: 'eNB_Branch', value: String.valueOf(env.gitlabSourceBranch)),
......@@ -273,7 +274,7 @@ pipeline {
booleanParam(name: 'eNB_mergeRequest', value: true)
]
} else {
build job: 'eNB-CI-FDD-Band7-B210',
FDD_Band7_B210_Status = build job: 'eNB-CI-FDD-Band7-B210',
parameters: [
string(name: 'eNB_Repository', value: String.valueOf(GIT_URL)),
string(name: 'eNB_Branch', value: String.valueOf(GIT_BRANCH)),
......@@ -284,6 +285,18 @@ pipeline {
}
}
}
post {
always {
script {
copyArtifacts(projectName: 'eNB-CI-FDD-Band7-B210',
filter: 'test_results*.html',
selector: specific("${FDD_Band7_B210_Status.number}"))
if (fileExist('test_results-eNB-CI-FDD-Band7-B210.html')) {
archiveArtifacts artifacts: 'test_results-eNB-CI-FDD-Band7-B210.html'
}
}
}
}
}
}
post {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment