Commit c8168ed4 authored by Raphael Defosseux's avatar Raphael Defosseux

chore(ci): post-review comments fixes

  * properly formatted the finalizeSlaveJob function
  * explained the reason and gave an explicit name to the global variable
Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 94d4cd7c
...@@ -133,13 +133,15 @@ pipeline { ...@@ -133,13 +133,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet0 = finalizeSlaveJob('RAN-Ubuntu18-Image-Builder') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
ubuntuBuildStatus = finalizeSlaveJob('RAN-Ubuntu18-Image-Builder')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet0 failingStages += ubuntuBuildStatus
} }
} }
} }
...@@ -153,13 +155,15 @@ pipeline { ...@@ -153,13 +155,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet1 = finalizeSlaveJob('RAN-RHEL8-Cluster-Image-Builder') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
rhelBuildStatus = finalizeSlaveJob('RAN-RHEL8-Cluster-Image-Builder')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet1 failingStages += rhelBuildStatus
} }
} }
} }
...@@ -173,13 +177,15 @@ pipeline { ...@@ -173,13 +177,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet2 = finalizeSlaveJob('RAN-cppcheck') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
cppcheckStatus = finalizeSlaveJob('RAN-cppcheck')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet2 failingStages += cppcheckStatus
} }
} }
} }
...@@ -193,13 +199,15 @@ pipeline { ...@@ -193,13 +199,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet = finalizeSlaveJob('RAN-ARM-Cross-Compile-Builder') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
armBuildStatus = finalizeSlaveJob('RAN-ARM-Cross-Compile-Builder')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet failingStages += armBuildStatus
} }
} }
} }
...@@ -219,13 +227,15 @@ pipeline { ...@@ -219,13 +227,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet3 = finalizeSlaveJob('RAN-PhySim-Cluster') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
physimStatus = finalizeSlaveJob('RAN-PhySim-Cluster')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet3 failingStages += physimStatus
} }
} }
} }
...@@ -240,13 +250,15 @@ pipeline { ...@@ -240,13 +250,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet4 = finalizeSlaveJob('RAN-RF-Sim-Test-4G') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
rfSim4GStatus = finalizeSlaveJob('RAN-RF-Sim-Test-4G')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet4 failingStages += rfSim4GStatus
} }
} }
} }
...@@ -261,13 +273,15 @@ pipeline { ...@@ -261,13 +273,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet5 = finalizeSlaveJob('RAN-RF-Sim-Test-5G') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
rfSim5GStatus = finalizeSlaveJob('RAN-RF-Sim-Test-5G')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet5 failingStages += rfSim5GStatus
} }
} }
} }
...@@ -282,13 +296,15 @@ pipeline { ...@@ -282,13 +296,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet6 = finalizeSlaveJob('RAN-L2-Sim-Test-4G') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
l2Sim4GStatus = finalizeSlaveJob('RAN-L2-Sim-Test-4G')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet6 failingStages += l2Sim4GStatus
} }
} }
} }
...@@ -303,13 +319,15 @@ pipeline { ...@@ -303,13 +319,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet7 = finalizeSlaveJob('RAN-L2-Sim-Test-5G') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
l2Sim5GStatus = finalizeSlaveJob('RAN-L2-Sim-Test-5G')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet7 failingStages += l2Sim5GStatus
} }
} }
} }
...@@ -324,13 +342,15 @@ pipeline { ...@@ -324,13 +342,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet8 = finalizeSlaveJob('RAN-LTE-FDD-LTEBOX-Container') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
lteTDDB200Status = finalizeSlaveJob('RAN-LTE-FDD-LTEBOX-Container')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet8 failingStages += lteTDDB200Status
} }
} }
} }
...@@ -346,13 +366,15 @@ pipeline { ...@@ -346,13 +366,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet9 = finalizeSlaveJob('RAN-LTE-FDD-OAIUE-OAICN4G-Container') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
lteFDDB200OAIUEStatus = finalizeSlaveJob('RAN-LTE-FDD-OAIUE-OAICN4G-Container')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet9 failingStages += lteFDDB200OAIUEStatus
} }
} }
} }
...@@ -367,13 +389,15 @@ pipeline { ...@@ -367,13 +389,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet10 = finalizeSlaveJob('RAN-LTE-TDD-LTEBOX-Container') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
lteFDDB200Status = finalizeSlaveJob('RAN-LTE-TDD-LTEBOX-Container')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet10 failingStages += lteFDDB200Status
} }
} }
} }
...@@ -388,13 +412,15 @@ pipeline { ...@@ -388,13 +412,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet11 = finalizeSlaveJob('RAN-NSA-B200-Module-LTEBOX-Container') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
nsaTDDB200Status = finalizeSlaveJob('RAN-NSA-B200-Module-LTEBOX-Container')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet11 failingStages += nsaTDDB200Status
} }
} }
} }
...@@ -409,13 +435,15 @@ pipeline { ...@@ -409,13 +435,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet12 = finalizeSlaveJob('RAN-SA-B200-Module-SABOX-Container') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
saTDDB200Status = finalizeSlaveJob('RAN-SA-B200-Module-SABOX-Container')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet12 failingStages += saTDDB200Status
} }
} }
} }
...@@ -430,13 +458,15 @@ pipeline { ...@@ -430,13 +458,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet13 = finalizeSlaveJob('RAN-gNB-N300-Timing-Phytest-LDPC') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
phytestLDPCoffloadStatus = finalizeSlaveJob('RAN-gNB-N300-Timing-Phytest-LDPC')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet13 failingStages += phytestLDPCoffloadStatus
} }
} }
} }
...@@ -451,13 +481,15 @@ pipeline { ...@@ -451,13 +481,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet14 = finalizeSlaveJob('RAN-LTE-TDD-2x2-Container') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
lteTDD2x2N3xxStatus = finalizeSlaveJob('RAN-LTE-TDD-2x2-Container')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet14 failingStages += lteTDD2x2N3xxStatus
} }
} }
} }
...@@ -472,13 +504,15 @@ pipeline { ...@@ -472,13 +504,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet15 = finalizeSlaveJob('RAN-SA-AW2S-CN5G') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
saAW2SStatus = finalizeSlaveJob('RAN-SA-AW2S-CN5G')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet15 failingStages += saAW2SStatus
} }
} }
} }
...@@ -493,13 +527,15 @@ pipeline { ...@@ -493,13 +527,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet16 = finalizeSlaveJob('RAN-Interop-F1') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
f1InteropStatus = finalizeSlaveJob('RAN-Interop-F1')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet16 failingStages += f1InteropStatus
} }
} }
} }
...@@ -514,13 +550,15 @@ pipeline { ...@@ -514,13 +550,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet17 = finalizeSlaveJob('OAI-CN5G-COTS-UE-Test') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
cn5gCOTSUESanityCheck = finalizeSlaveJob('OAI-CN5G-COTS-UE-Test')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet17 failingStages += cn5gCOTSUESanityCheck
} }
} }
} }
...@@ -535,13 +573,15 @@ pipeline { ...@@ -535,13 +573,15 @@ pipeline {
post { post {
always { always {
script { script {
testBullet18 = finalizeSlaveJob('RAN-SA-OAIUE-CN5G') // Using a unique variable name for each test stage to avoid overwriting on a global variable
// due to parallel-time concurrency
saOAIUEStatus = finalizeSlaveJob('RAN-SA-OAIUE-CN5G')
} }
} }
failure { failure {
script { script {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
failingStages += testBullet18 failingStages += saOAIUEStatus
} }
} }
} }
......
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