Commit 06e63f7c authored by Raphael Defosseux's avatar Raphael Defosseux

chore(ci): report in the GitLab MR comment the list of failing test stages

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent c481aad0
...@@ -31,6 +31,9 @@ def do5Gtest = false ...@@ -31,6 +31,9 @@ def do5Gtest = false
// //
def gitCommitAuthorEmailAddr def gitCommitAuthorEmailAddr
// list of failing stages
def failingStages = ''
pipeline { pipeline {
agent { agent {
label nodeExecutor label nodeExecutor
...@@ -136,6 +139,7 @@ pipeline { ...@@ -136,6 +139,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-Ubuntu18-Image-Builder'
} }
} }
} }
...@@ -155,6 +159,7 @@ pipeline { ...@@ -155,6 +159,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-RHEL8-Cluster-Image-Builder'
} }
} }
} }
...@@ -174,6 +179,7 @@ pipeline { ...@@ -174,6 +179,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-cppcheck'
} }
} }
} }
...@@ -199,6 +205,7 @@ pipeline { ...@@ -199,6 +205,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-PhySim-Cluster'
} }
} }
} }
...@@ -219,6 +226,7 @@ pipeline { ...@@ -219,6 +226,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-RF-Sim-Test-4G'
} }
} }
} }
...@@ -239,6 +247,7 @@ pipeline { ...@@ -239,6 +247,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-RF-Sim-Test-5G'
} }
} }
} }
...@@ -259,6 +268,7 @@ pipeline { ...@@ -259,6 +268,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-L2-Sim-Test-4G'
} }
} }
} }
...@@ -279,6 +289,7 @@ pipeline { ...@@ -279,6 +289,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-L2-Sim-Test-5G'
} }
} }
} }
...@@ -299,6 +310,7 @@ pipeline { ...@@ -299,6 +310,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-LTE-FDD-LTEBOX-Container'
} }
} }
} }
...@@ -320,6 +332,7 @@ pipeline { ...@@ -320,6 +332,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-LTE-FDD-OAIUE-OAICN4G-Container'
} }
} }
} }
...@@ -340,6 +353,7 @@ pipeline { ...@@ -340,6 +353,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-LTE-TDD-LTEBOX-Container'
} }
} }
} }
...@@ -360,6 +374,7 @@ pipeline { ...@@ -360,6 +374,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-NSA-B200-Module-LTEBOX-Container'
} }
} }
} }
...@@ -380,6 +395,7 @@ pipeline { ...@@ -380,6 +395,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-SA-B200-Module-SABOX-Container'
} }
} }
} }
...@@ -400,6 +416,7 @@ pipeline { ...@@ -400,6 +416,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-gNB-N300-Timing-Phytest-LDPC'
} }
} }
} }
...@@ -420,6 +437,7 @@ pipeline { ...@@ -420,6 +437,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-LTE-TDD-2x2-Container'
} }
} }
} }
...@@ -440,6 +458,7 @@ pipeline { ...@@ -440,6 +458,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-SA-AW2S-CN5G'
} }
} }
} }
...@@ -460,6 +479,7 @@ pipeline { ...@@ -460,6 +479,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-Interop-F1'
} }
} }
} }
...@@ -480,6 +500,7 @@ pipeline { ...@@ -480,6 +500,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * OAI-CN5G-COTS-UE-Test'
} }
} }
} }
...@@ -500,6 +521,7 @@ pipeline { ...@@ -500,6 +521,7 @@ pipeline {
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-SA-OAIUE-CN5G'
} }
} }
} }
...@@ -518,6 +540,7 @@ pipeline { ...@@ -518,6 +540,7 @@ pipeline {
script { script {
echo "Push to Docker-Hub KO" echo "Push to Docker-Hub KO"
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += '\n * RAN-DockerHub-Push'
} }
} }
} }
...@@ -541,7 +564,8 @@ pipeline { ...@@ -541,7 +564,8 @@ pipeline {
script { script {
def message = "OAI " + JOB_NAME + " build (" + BUILD_ID + "): failed (" + BUILD_URL + ")" def message = "OAI " + JOB_NAME + " build (" + BUILD_ID + "): failed (" + BUILD_URL + ")"
if ("MERGE".equals(env.gitlabActionType)) { if ("MERGE".equals(env.gitlabActionType)) {
addGitLabMRComment comment: message def fullMessage = message + '\n\nList of failing test stages:' + failingStages
addGitLabMRComment comment: fullMessage
def message2 = message + " -- MergeRequest #" + env.gitlabMergeRequestIid + " (" + env.gitlabMergeRequestTitle + ")" def message2 = message + " -- MergeRequest #" + env.gitlabMergeRequestIid + " (" + env.gitlabMergeRequestTitle + ")"
sendSocialMediaMessage('ci-enb', 'danger', message2) sendSocialMediaMessage('ci-enb', 'danger', message2)
} else { } else {
......
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