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:
Shirang Jia
2021-08-24 10:43:17 -07:00
committed by GitHub
parent 0d74d3ed5d
commit ce85bb3b7d
3 changed files with 57 additions and 5 deletions
+12 -1
View File
@@ -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()