public class SlackMessageProvider extends Object
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
Retrieve latest set Slack base URL.
|
boolean |
getBotUser()
Retrieve latest set Slack bot user.
|
String |
getRoom()
Retrieve latest set Slack channel.
|
String |
getSlackMessageText()
Retrieve latest slack message text.
|
String |
getTeamDomain()
Retrieve latest set Slack team domain.
|
boolean |
postToSlack(String messageText,
PrintStream buildLog)
Function to send a slack message to a channel specificed in
the plugin configuration.
|
public boolean getBotUser()
public String getTeamDomain()
public String getBaseUrl()
public String getRoom()
public String getSlackMessageText()
public boolean postToSlack(String messageText, PrintStream buildLog)
messageText
- - Content of the slack message.buildLog
- - PrintStream of build to allow for success and error messages to be displayed.Copyright © 2016–2020. All rights reserved.