Commit 1b09465b authored by Raphael Defosseux's avatar Raphael Defosseux

[CI] adding trigger to federation pipeline

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent f6aa767e
......@@ -52,7 +52,8 @@ pipeline {
gitlabBuilds(builds: [
"Build NRF Image",
"Static Code Analysis",
"Code Formatting Checker"
"Code Formatting Checker",
"Test with DsTester"
])
}
......@@ -234,6 +235,36 @@ pipeline {
}
}
}
stage ('Testing in CN-5G-FED environment') {
steps {
script {
gitlabCommitStatus(name: "Test with DsTester") {
localStatus = build job: params.CN5G_FED_PipelineName,
parameters: [
string(name: 'NRF_TAG', value: String.valueOf(amf_tag)),
string(name: 'NRF_BRANCH', value: String.valueOf(amf_branch))
], propagate: false
localResult = localStatus.getResult()
if (localStatus.resultIsBetterOrEqualTo('SUCCESS')) {
echo "Federation Test Job is OK"
} else {
echo "Federation Test Job is KO"
sh "ci-scripts/fail.sh"
}
}
}
}
post {
always {
script {
copyArtifacts(projectName: params.CN5G_FED_PipelineName,
filter: '*_results_oai_cn5g.html',
selector: lastCompleted())
}
}
}
}
}
post {
success {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment