Class SlackJobProperty

java.lang.Object
hudson.model.JobProperty<Job<?,?>>
io.jenkins.plugins.changeinvestigator.slack.config.SlackJobProperty
All Implemented Interfaces:
ExtensionPoint, Describable<JobProperty<?>>, ReconfigurableDescribable<JobProperty<?>>, BuildStep

public final class SlackJobProperty extends JobProperty<Job<?,?>>
Explicit per-job opt-in, scoped to builds scheduled after enabling notifications.
  • Constructor Details

    • SlackJobProperty

      @DataBoundConstructor public SlackJobProperty(boolean enabled, boolean useChannelOverride, String channel)
  • Method Details

    • setOwner

      protected void setOwner(Job<?,?> job)
      Overrides:
      setOwner in class JobProperty<Job<?,?>>
    • isEnabled

      public boolean isEnabled()
    • isUseChannelOverride

      public boolean isUseChannelOverride()
    • getChannel

      public String getChannel()
    • getEnabledAfterBuild

      public int getEnabledAfterBuild()
    • getRevision

      public long getRevision()
    • getEnabledAtMillis

      public long getEnabledAtMillis()
    • getModifiedAtMillis

      public long getModifiedAtMillis()
    • eligible

      public static boolean eligible(Run<?,?> run)
    • effectiveChannel

      public static String effectiveChannel(Job<?,?> job)
    • reconfigure

      public SlackJobProperty reconfigure(org.kohsuke.stapler.StaplerRequest2 request, net.sf.json.JSONObject form) throws Descriptor.FormException
      Specified by:
      reconfigure in interface ReconfigurableDescribable<JobProperty<?>>
      Overrides:
      reconfigure in class JobProperty<Job<?,?>>
      Throws:
      Descriptor.FormException