Interface SlackService

All Known Implementing Classes:
StandardSlackService

public interface SlackService
  • Method Details

    • publish

      boolean publish(String message)
    • publish

      boolean publish(SlackRequest slackRequest)
    • publish

      boolean publish(String message, String color)
    • publish

      boolean publish(String message, String color, String timestamp)
    • publish

      boolean publish(String message, net.sf.json.JSONArray attachments, String color)
    • publish

      boolean publish(String message, net.sf.json.JSONArray attachments, String color, String timestamp)
    • upload

      boolean upload(FilePath workspace, String artifactIncludes, TaskListener log)
    • addReaction

      boolean addReaction(String channelId, String timestamp, String emojiName)
    • removeReaction

      boolean removeReaction(String channelId, String timestamp, String emojiName)
      Remove an emoji reaction to a message.
      Parameters:
      channelId - - Slack's internal channel id (i.e. what's returned in a `chat.postMessage` response)
      timestamp - - Timestamp identifying the message
      emojiName - - The name of the emoji to add in reaction to the message (no colons)
      Returns:
      boolean indicating whether the API request succeeded
    • getResponseString

      String getResponseString()