jenkinsfiles: set status aborted if machine parameter is missing

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmueller 2021-07-07 09:15:44 +02:00
parent bf7d5e86a4
commit 2c34abe54b
3 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ pipeline {
steps {
script {
if("${params.MACHINE}" == "select...") {
currentBuild.result = 'ABORTED'
error("Missing machine type --> select parameter MACHINE for a proper build")
}

View File

@ -40,6 +40,7 @@ pipeline {
steps {
script {
if("${params.MACHINE}" == "select...") {
currentBuild.result = 'ABORTED'
error("Missing machine type --> select parameter MACHINE for a proper build")
}

View File

@ -41,6 +41,7 @@ pipeline {
steps {
script {
if("${params.MACHINE}" == "select...") {
currentBuild.result = 'ABORTED'
error("Missing machine type --> select parameter MACHINE for a proper build")
}