test(e2e): avoid allocating agents if not needed
skipped steps should not allocate jenkins agents
@@ -168,6 +168,7 @@ pipeline {
parallel {
stage('rust unit tests') {
when {
+ beforeAgent true
expression { rust_test == true }
}
agent { label 'nixos-mayastor' }
@@ -184,6 +185,7 @@ pipeline {
}
stage('grpc tests') {
when {
+ beforeAgent true
expression { grpc_test == true }
}
agent { label 'nixos-mayastor' }
@@ -199,6 +201,7 @@ pipeline {
}
stage('moac unit tests') {
when {
+ beforeAgent true
expression { moac_test == true }
}
agent { label 'nixos-mayastor' }
@@ -214,11 +217,13 @@ pipeline {
}
stage('e2e tests') {
when {
+ beforeAgent true
expression { e2e_test == true }
}
stages {
stage('e2e docker images') {
when {
+ beforeAgent true
expression { e2e_build_images == true }
}
agent { label 'nixos-mayastor' }
