Commit cc62375d authored by Raphael Defosseux's avatar Raphael Defosseux

CI: VM-based tests are now sequential to prevent too much stress

    even in sequential mode, all VM-based are run.
Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 1c495cfd
...@@ -271,7 +271,7 @@ pipeline { ...@@ -271,7 +271,7 @@ pipeline {
} }
} }
} catch (Exception e) { } catch (Exception e) {
echo "Red Hat build failed not an error now" echo "Red Hat build failed but we could keep running pipeline if all ubuntu-based build passed"
} }
} }
} }
...@@ -312,40 +312,68 @@ pipeline { ...@@ -312,40 +312,68 @@ pipeline {
stage ("Variant Tests") { stage ("Variant Tests") {
parallel { parallel {
stage ("Test physical simulators") { stage ("VM-based tests") {
steps { stages {
gitlabCommitStatus(name: "Test phy-sim") { stage ("Test physical simulators") {
timeout (time: 20, unit: 'MINUTES') { steps {
sh "./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant phy-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}" script {
gitlabCommitStatus(name: "Test phy-sim") {
timeout (time: 20, unit: 'MINUTES') {
try {
sh "./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant phy-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
} catch (Exception e) {
currentBuild.result = 'FAILURE'
}
}
}
}
} }
} }
} stage ("Build Flexran Controller") {
} when {
stage ("Test basic simulator") { expression {doFlexranCtrlTest}
steps { }
gitlabCommitStatus(name: "Test basic-sim") { steps {
timeout (time: 30, unit: 'MINUTES') { script {
sh "./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant basic-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}" timeout (time: 20, unit: 'MINUTES') {
try {
sh "./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant flexran-rtc --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive"
} catch (Exception e) {
currentBuild.result = 'FAILURE'
}
}
}
} }
} }
} stage ("Test basic simulator") {
} steps {
stage ("Test L2 simulator") { script {
steps { gitlabCommitStatus(name: "Test basic-sim") {
gitlabCommitStatus(name: "Test L2-sim") { timeout (time: 30, unit: 'MINUTES') {
timeout (time: 30, unit: 'MINUTES') { try {
sh "./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant l2-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}" sh "./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant basic-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
} catch (Exception e) {
currentBuild.result = 'FAILURE'
}
}
}
}
} }
} }
} stage ("Test L2 simulator") {
} steps {
stage ("Build Flexran Controller") { script {
when { gitlabCommitStatus(name: "Test L2-sim") {
expression {doFlexranCtrlTest} timeout (time: 30, unit: 'MINUTES') {
} try {
steps { sh "./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant l2-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
timeout (time: 20, unit: 'MINUTES') { } catch (Exception e) {
sh "./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant flexran-rtc --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive" currentBuild.result = 'FAILURE'
}
}
}
}
}
} }
} }
} }
......
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