[wf] Allow to skip aborted jobs

PRODX-42478

Change-Id: I42545580754439201767d83f4d0183506b100045
diff --git a/src/com/mirantis/mk/Workflow.groovy b/src/com/mirantis/mk/Workflow.groovy
index 643077d..8646073 100644
--- a/src/com/mirantis/mk/Workflow.groovy
+++ b/src/com/mirantis/mk/Workflow.groovy
@@ -893,6 +893,12 @@
                     failed_jobs[build_url] = job_result
                 }
                 break
+            case "ABORTED":
+                ignoreStepResult = step['ignore_aborted'] ?: (step['ignore_failed'] ?: false)
+                if (ignoreStepResult && !step['skip_results'] ?: false) {
+                    failed_jobs[build_url] = job_result
+                }
+                break
             default:
                 ignoreStepResult = step['ignore_failed'] ?: false
                 if (ignoreStepResult && !step['skip_results'] ?: false) {
@@ -1156,6 +1162,7 @@
  *   job: string. Jenkins job name
  *   ignore_failed: bool. if true, keep running the workflow jobs if the job is failed, but fail the workflow at finish
  *   ignore_unstable: bool. if true, keep running the workflow jobs if the job is unstable, but mark the workflow is unstable at finish
+ *   ignore_aborted: bool. if true, keep running the workflow jobs if the job is aborted, but mark the workflow is unstable at finish
  *   skip_results: bool. if true, keep running the workflow jobs if the job is failed, but do not fail the workflow at finish. Makes sense only when ignore_failed is set.
  *   ignore_not_built: bool. if true, keep running the workflow jobs if the job set own status to NOT_BUILT, do not fail the workflow at finish for such jobs
  *   inherit_parent_params: bool. if true, provide all parameters from the parent job to the child job as defaults