Skip to content

Instantly share code, notes, and snippets.

@ThisGuyCodes
Last active March 23, 2016 17:49
Show Gist options
  • Save ThisGuyCodes/527ba36d010c738f6463 to your computer and use it in GitHub Desktop.
Save ThisGuyCodes/527ba36d010c738f6463 to your computer and use it in GitHub Desktop.
manual slack notifications jenkins dsl
configure {
it / 'publishers' / 'jenkins.plugins.slack.SlackNotifier'(plugin: "slack@2.0.1") {
teamDomain('prefix')
authToken('token')
buildServerUrl('http://URL/')
room('#ROOM')
startNotification(true)
notifySuccess(true)
notifyAborted(true)
notifyNotBuilt(true)
notifyUnstable(false)
notifyFailure(true)
notifyBackToNormal(false)
notifyRepeatedFailure(false)
includeTestSummary(true)
commitInfoChoice('AUTHORS_AND_TITLES')
includeCustomeMessage(false)
customMessage()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment