chore(ci): disable all the 4G Legacy LTE pipelines before we migrate the servers
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -187,7 +187,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage ("Variant Builds") {
|
stage ("Variant Builds") {
|
||||||
parallel {
|
parallel {
|
||||||
@@ -349,142 +349,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ("Test MONOLITHIC - FDD - Band 7 - B210") {
|
|
||||||
when {
|
|
||||||
expression {doFullTestsuite}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
triggerSlaveJob ('eNB-CI-FDD-Band7-B210', 'Test-Mono-FDD-Band7')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
finalizeSlaveJob('eNB-CI-FDD-Band7-B210')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
failure {
|
|
||||||
script {
|
|
||||||
currentBuild.result = 'FAILURE'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ("Test MONOLITHIC - TDD - Band 40 - B210") {
|
|
||||||
when {
|
|
||||||
expression {doFullTestsuite}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
triggerSlaveJob ('eNB-CI-TDD-Band40-B210', 'Test-Mono-TDD-Band40')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
finalizeSlaveJob('eNB-CI-TDD-Band40-B210')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
failure {
|
|
||||||
script {
|
|
||||||
currentBuild.result = 'FAILURE'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ("Test IF4p5 - FDD - Band 7 - B210") {
|
|
||||||
when {
|
|
||||||
expression {doFullTestsuite}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh "sleep 60"
|
|
||||||
triggerSlaveJob ('eNB-CI-IF4p5-FDD-Band7-B210', 'Test-IF4p5-FDD-Band7')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
finalizeSlaveJob('eNB-CI-IF4p5-FDD-Band7-B210')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
failure {
|
|
||||||
script {
|
|
||||||
currentBuild.result = 'FAILURE'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ("Test IF4p5 - TDD - Band 40 - B210") {
|
|
||||||
when {
|
|
||||||
expression {doFullTestsuite}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh "sleep 60"
|
|
||||||
triggerSlaveJob ('eNB-CI-IF4p5-TDD-Band40-B210', 'Test-IF4p5-TDD-Band40')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
finalizeSlaveJob('eNB-CI-IF4p5-TDD-Band40-B210')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
failure {
|
|
||||||
script {
|
|
||||||
currentBuild.result = 'FAILURE'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ("Test OAI UE - FDD - Band 20 - B200") {
|
|
||||||
when {
|
|
||||||
expression {doFullTestsuite}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
triggerSlaveJobNoGitLab ('UE-CI-FDD-Band20-B200')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
finalizeSlaveJob('UE-CI-FDD-Band20-B200')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
failure {
|
|
||||||
script {
|
|
||||||
currentBuild.result = 'FAILURE'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ("Test OAI UE - OAI eNB - FDD - Band 7 - B200") {
|
|
||||||
when {
|
|
||||||
expression {doFullTestsuite}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
// Delayed trigger on slave job, so it is always the last one to run
|
|
||||||
sh "sleep 240"
|
|
||||||
triggerSlaveJob ('eNB-UE-CI-MONO-FDD-Band7-B200', 'Test-eNB-OAI-UE-FDD-Band7')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
finalizeSlaveJob('eNB-UE-CI-MONO-FDD-Band7-B200')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
failure {
|
|
||||||
script {
|
|
||||||
currentBuild.result = 'FAILURE'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
@@ -560,68 +424,3 @@ OAI CI Team''',
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---- Slave Job functions
|
|
||||||
|
|
||||||
def triggerSlaveJob (jobName, gitlabStatusName) {
|
|
||||||
// Workaround for the "cancelled" GitLab pipeline notification
|
|
||||||
// The slave job is triggered with the propagate false so the following commands are executed
|
|
||||||
// Its status is now PASS/SUCCESS from a stage pipeline point of view
|
|
||||||
// localStatus variable MUST be analyzed to properly assess the status
|
|
||||||
localStatus = build job: jobName,
|
|
||||||
parameters: [
|
|
||||||
string(name: 'eNB_Repository', value: String.valueOf(GIT_URL)),
|
|
||||||
string(name: 'eNB_Branch', value: String.valueOf(env.gitlabSourceBranch)),
|
|
||||||
string(name: 'eNB_CommitID', value: String.valueOf(env.gitlabMergeRequestLastCommit)),
|
|
||||||
booleanParam(name: 'eNB_mergeRequest', value: "MERGE".equals(env.gitlabActionType)),
|
|
||||||
string(name: 'eNB_TargetBranch', value: String.valueOf(env.gitlabTargetBranch))
|
|
||||||
], propagate: false
|
|
||||||
localResult = localStatus.getResult()
|
|
||||||
echo "${jobName} Slave Job status is ${localResult}"
|
|
||||||
gitlabCommitStatus(name: gitlabStatusName) {
|
|
||||||
if (localStatus.resultIsBetterOrEqualTo('SUCCESS')) {
|
|
||||||
echo "${jobName} Slave Job is OK"
|
|
||||||
} else {
|
|
||||||
echo "${jobName} Slave Job is KO"
|
|
||||||
sh "ci-scripts/fail.sh"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def triggerSlaveJobNoGitLab (jobName) {
|
|
||||||
// Workaround for the "cancelled" GitLab pipeline notification
|
|
||||||
// The slave job is triggered with the propagate false so the following commands are executed
|
|
||||||
// Its status is now PASS/SUCCESS from a stage pipeline point of view
|
|
||||||
// localStatus variable MUST be analyzed to properly assess the status
|
|
||||||
localStatus = build job: jobName,
|
|
||||||
parameters: [
|
|
||||||
string(name: 'eNB_Repository', value: String.valueOf(GIT_URL)),
|
|
||||||
string(name: 'eNB_Branch', value: String.valueOf(env.gitlabSourceBranch)),
|
|
||||||
string(name: 'eNB_CommitID', value: String.valueOf(env.gitlabMergeRequestLastCommit)),
|
|
||||||
booleanParam(name: 'eNB_mergeRequest', value: "MERGE".equals(env.gitlabActionType)),
|
|
||||||
string(name: 'eNB_TargetBranch', value: String.valueOf(env.gitlabTargetBranch))
|
|
||||||
], propagate: false
|
|
||||||
localResult = localStatus.getResult()
|
|
||||||
echo "${jobName} Slave Job status is ${localResult}"
|
|
||||||
if (localStatus.resultIsBetterOrEqualTo('SUCCESS')) {
|
|
||||||
echo "${jobName} Slave Job is OK"
|
|
||||||
} else {
|
|
||||||
echo "${jobName} Slave Job is KO"
|
|
||||||
sh "ci-scripts/fail.sh"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def finalizeSlaveJob(jobName) {
|
|
||||||
// In case of any non-success, we are retrieving the HTML report of the last completed
|
|
||||||
// slave job. The only drop-back is that we may retrieve the HTML report of a previous build
|
|
||||||
fileName = "test_results-${jobName}.html"
|
|
||||||
if (!fileExists(fileName)) {
|
|
||||||
copyArtifacts(projectName: jobName,
|
|
||||||
filter: 'test_results*.html',
|
|
||||||
selector: lastCompleted())
|
|
||||||
if (fileExists(fileName)) {
|
|
||||||
sh "sed -i -e 's#TEMPLATE_BUILD_TIME#${JOB_TIMESTAMP}#' ${fileName}"
|
|
||||||
archiveArtifacts artifacts: fileName
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user