jenkinsfiles: set status aborted if machine parameter is missing
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
bf7d5e86a4
commit
2c34abe54b
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue