Add awsi deployment as a non-blocking step in nightly pipeline (#3397)
* Add awsi deployment as a non-blocking step in nightly pipeline * Make step fail if it's not a non-blocking step
This commit is contained in:
Vendored
+12
-1
@@ -473,7 +473,18 @@ def CreateSingleNode(Map pipelineConfig, def platform, def build_job, Map envVar
|
||||
if(build_job.value.steps) { //this is a pipe with many steps so create all the build stages
|
||||
build_job.value.steps.each { build_step ->
|
||||
build_job_name = build_step
|
||||
CreateBuildStage(pipelineConfig, platform.key, build_step, envVars).call()
|
||||
envVars = GetBuildEnvVars(platform.value.PIPELINE_ENV ?: EMPTY_JSON, platform.value.build_types[build_step].PIPELINE_ENV ?: EMPTY_JSON, pipelineName)
|
||||
try {
|
||||
CreateBuildStage(pipelineConfig, platform.key, build_step, envVars).call()
|
||||
}
|
||||
catch (Exception e) {
|
||||
if (envVars['NONBLOCKING_STEP']?.toBoolean()) {
|
||||
unstable(message: "Build step ${build_step} failed but it's a non-blocking step in build job ${build_job.key}")
|
||||
}
|
||||
else {
|
||||
error "FAILURE: ${e}"
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
CreateBuildStage(pipelineConfig, platform.key, build_job.key, envVars).call()
|
||||
|
||||
Reference in New Issue
Block a user