Support all result types for build steps of postBuildScripts plugin

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When using v1.66 of the job-dsl-plugin the postBuildScripts plugin can be used as follows:

      job {
        publishers {
          postBuildScripts {
            onlyIfBuildSucceeds(true)
            onlyIfBuildFails(true)
            steps {
               ... build steps ...
            }
          }
        }
      }

      The problem is that due to how results are migrated from the old XML style to new (See: https://github.com/jenkinsci/postbuildscript-plugin/blob/9e7a84a29a3b48b93f18606a7eaea22f03f5013a/src/main/java/org/jenkinsci/plugins/postbuildscript/PostBuildScript.java#L143-L152) the only values which can be set are SUCCESS or FAILURE using the job-dsl-plugin

       

      I would like to also run my post build steps if a job is ABORTED for example but there is no API to do this.

            Assignee:
            Daniel Spilker
            Reporter:
            G D
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: