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

Inform user if the plugin is applicable for a job

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • m2release-plugin
    • None

      Inform the user if m2release is applicable for an especific Job when configuring it.

          [JENKINS-13094] Inform user if the plugin is applicable for a job

          Suggestion:

          Add some logs to the isApplicable() method in M2ReleaseBuildWrapper.

          ----------
          @Override
          public boolean isApplicable(AbstractProject<?, ?> item)

          { boolean isApplicable = item instanceof AbstractMavenProject; LoggerFactory.getLogger(M2ReleaseBuildWrapper.class).debug("[" + item.getClass().getCanonicalName() + "] isApplicable? [" + isApplicable + "]"); return isApplicable; }

          ----------

          15.03.2012 15:05:31 org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$DescriptorImpl isApplicable
          FEIN: [hudson.maven.MavenModuleSet] isApplicable? [true]
          15.03.2012 14:57:56 org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$DescriptorImpl isApplicable
          FEIN: [hudson.model.FreeStyleProject] isApplicable? [false]

          Andoni del Olmo added a comment - Suggestion: Add some logs to the isApplicable() method in M2ReleaseBuildWrapper. ---------- @Override public boolean isApplicable(AbstractProject<?, ?> item) { boolean isApplicable = item instanceof AbstractMavenProject; LoggerFactory.getLogger(M2ReleaseBuildWrapper.class).debug("[" + item.getClass().getCanonicalName() + "] isApplicable? [" + isApplicable + "]"); return isApplicable; } ---------- 15.03.2012 15:05:31 org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$DescriptorImpl isApplicable FEIN: [hudson.maven.MavenModuleSet] isApplicable? [true] 15.03.2012 14:57:56 org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper$DescriptorImpl isApplicable FEIN: [hudson.model.FreeStyleProject] isApplicable? [false]

            Unassigned Unassigned
            andonidelolmo Andoni del Olmo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: