Merge "Add Workflow option 'inherit_parent_params'"
diff --git a/src/com/mirantis/mk/Workflow.groovy b/src/com/mirantis/mk/Workflow.groovy
index d2538e6..d13301c 100644
--- a/src/com/mirantis/mk/Workflow.groovy
+++ b/src/com/mirantis/mk/Workflow.groovy
@@ -192,11 +192,10 @@
storeArtifacts(build_url, step['artifacts'], global_variables, job_name, build_id)
// Check job result, in case of SUCCESS, move to next step.
- // In case job has status NOT_BUILT, fail the build or keep going depending on 'ignore_not_built)' flag
+ // In case job has status NOT_BUILT, fail the build or keep going depending on 'ignore_not_built' flag
// In other cases check flag ignore_failed, if true ignore any statuses and keep going.
if (job_result != 'SUCCESS'){
def ignoreStepResult = false
- failed_jobs[build_url] = job_result
switch(job_result) {
// In cases when job was waiting too long in queue or internal job logic allows to skip building,
// job may have NOT_BUILT status. In that case ignore_not_built flag can be used not to fail scenario.
@@ -205,6 +204,7 @@
break;
default:
ignoreStepResult = step['ignore_failed'] ?: false
+ failed_jobs[build_url] = job_result
}
if (!ignoreStepResult) {
currentBuild.result = job_result