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
Explicit per-job opt-in, scoped to builds scheduled after enabling notifications.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.JobProperty
ownerFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionSlackJobProperty(boolean enabled, boolean useChannelOverride, String channel) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringeffectiveChannel(Job<?, ?> job) static booleanintlonglonglongbooleanbooleanreconfigure(org.kohsuke.stapler.StaplerRequest2 request, net.sf.json.JSONObject form) protected voidMethods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure
-
Constructor Details
-
SlackJobProperty
@DataBoundConstructor public SlackJobProperty(boolean enabled, boolean useChannelOverride, String channel)
-
-
Method Details
-
setOwner
- Overrides:
setOwnerin classJobProperty<Job<?,?>>
-
isEnabled
public boolean isEnabled() -
isUseChannelOverride
public boolean isUseChannelOverride() -
getChannel
-
getEnabledAfterBuild
public int getEnabledAfterBuild() -
getRevision
public long getRevision() -
getEnabledAtMillis
public long getEnabledAtMillis() -
getModifiedAtMillis
public long getModifiedAtMillis() -
eligible
-
effectiveChannel
-
reconfigure
public SlackJobProperty reconfigure(org.kohsuke.stapler.StaplerRequest2 request, net.sf.json.JSONObject form) throws Descriptor.FormException - Specified by:
reconfigurein interfaceReconfigurableDescribable<JobProperty<?>>- Overrides:
reconfigurein classJobProperty<Job<?,?>> - Throws:
Descriptor.FormException
-