Skip to content

Instantly share code, notes, and snippets.

@ashleywxwx
Created May 31, 2016 21:02
Show Gist options
  • Save ashleywxwx/42a76c436baabbd871cf7c3a173599ce to your computer and use it in GitHub Desktop.
Save ashleywxwx/42a76c436baabbd871cf7c3a173599ce to your computer and use it in GitHub Desktop.
Configuring Jenkins Job DSL for Slack
configure {
it / 'publishers' / 'jenkins.plugins.slack.SlackNotifier'(plugin: "[email protected]") {
teamDomain('myteam')
authToken('mytoken')
buildServerUrl('http://mydomain:8080/')
room('#my-room')
notifyUnstable(true)
notifyFailure(true)
notifyBackToNormal(true)
includeTestSummary(true)
commitInfoChoice('AUTHORS_AND_TITLES')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment