Package jenkins.plugins.slack
Interface SlackService
-
- All Known Implementing Classes:
StandardSlackService
public interface SlackService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addReaction(String channelId, String timestamp, String emojiName)
String
getResponseString()
boolean
publish(String message)
boolean
publish(String message, String color)
boolean
publish(String message, String color, String timestamp)
boolean
publish(String message, net.sf.json.JSONArray attachments, String color)
boolean
publish(String message, net.sf.json.JSONArray attachments, String color, String timestamp)
boolean
publish(SlackRequest slackRequest)
boolean
removeReaction(String channelId, String timestamp, String emojiName)
Remove an emoji reaction to a message.boolean
upload(FilePath workspace, String artifactIncludes, TaskListener log)
-
-
-
Method Detail
-
publish
boolean publish(String message)
-
publish
boolean publish(SlackRequest slackRequest)
-
publish
boolean publish(String message, net.sf.json.JSONArray attachments, String color, String timestamp)
-
upload
boolean upload(FilePath workspace, String artifactIncludes, TaskListener log)
-
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 messageemojiName
- - 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()
-
-