Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11084

Setting @Extension(ordinal = 100) doesn't take effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • None
    • Jenkins ver. 1.431

      I have a requirement to run some post build steps before the artifact archiver so
      I've recompiled the source code of this plugin https://wiki.jenkins-ci.org/display/JENKINS/Post+build+task to have
      @Extension(ordinal = 100)

      ie.
      @Extension(ordinal = 100)
      public static final class DescriptorImpl extends BuildStepDescriptor<Publisher> {
      public DescriptorImpl()

      { super(PostbuildTask.class); load(); }

      Though that seems to take effect on the dashboard (postbuild task section shows up on top of ArtifctAchiver section, in reality, the execution steps don't change.

      ArtifactArchiver is still running before PostBuildTask plugin. Here's the console log

      channel stopped
      Archiving artifacts
      Performing Post build task...
      Match found for :. : True
      Logical operation result is TRUE
      Running script : jenkins-post-build.sh

            Unassigned Unassigned
            hhuynh hhuynh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: