Class SlackChannel

All Implemented Interfaces:
Describable<NotificationChannel>

public class SlackChannel extends NotificationChannel
Notify-only Slack incoming webhook. The webhook URL is a Secret-text credential. No Slack App, no interactive buttons, no inbound answering.
  • Constructor Details

    • SlackChannel

      @DataBoundConstructor public SlackChannel()
  • Method Details

    • getWebhookCredentialsId

      @CheckForNull public String getWebhookCredentialsId()
    • setWebhookCredentialsId

      @DataBoundSetter public void setWebhookCredentialsId(@CheckForNull String webhookCredentialsId)
    • send

      public void send(@NonNull NotificationEvent event)
      Description copied from class: NotificationChannel
      Deliver event. Implementations log and return on failure; they must not throw.
      Specified by:
      send in class NotificationChannel
      Parameters:
      event - a snapshot with job metadata and an absolute Jenkins URL; never the review file or question context markdown