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

Expose Promoted Builds to "Copy Artifact" plugin like the Promoted Builds Simple plugin does.

XMLWordPrintable

      Modify this plugin to act like the "Promoted Builds Simple" plugin for exposing promoted builds to the CopyArtifact plugin. The "Promoted Builds Simple" plugin uses a BuildSelector in its PromotedBuildsSimplePlugin class that does this:

      @Extension public static Descriptor initBuildSelector() {
      // Add BuildSelector extension if Copy Artifact plugin is present
      try {
      Class.forName("hudson.plugins.copyartifact.BuildSelector");
      return PromotedBuildSelector.DESCRIPTOR;
      }

      catch (ClassNotFoundException ignore) {
      return null;
      }
      }

      and defines PromotedBuildSelector which uses an action. Based on my limited knowledge this seems to make the builds promoted by the "Promoted Builds Simple" plugin available to the "Copy Artifact" plugin. Can a simple extension point be added to this Promoted Builds plugin to enable the builds promoted by it to be available to the "Copy Artifact" plugin. This would be a very valuable feature to this plugin, much like it is to the "Promoted Builds Simple" plugin.

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

              Created:
              Updated:
              Resolved: