8ed66b00a2
Add support for custom messages per build result in the Slack notification plugin. Change-Id: Iafc8b67528914c6d14c78f72aa535a3cfa7f7033 Story: 2007912 Task: 40315
36 lines
1.4 KiB
XML
36 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<publishers>
|
|
<jenkins.plugins.slack.SlackNotifier>
|
|
<teamDomain>teamname</teamDomain>
|
|
<authToken>yourauthtoken</authToken>
|
|
<authTokenCredentialId>yourauthtokenid</authTokenCredentialId>
|
|
<buildServerUrl>http://localhost:8081</buildServerUrl>
|
|
<room>#builds</room>
|
|
<startNotification>true</startNotification>
|
|
<notifySuccess>true</notifySuccess>
|
|
<notifyAborted>true</notifyAborted>
|
|
<notifyNotBuilt>true</notifyNotBuilt>
|
|
<notifyUnstable>true</notifyUnstable>
|
|
<notifyFailure>true</notifyFailure>
|
|
<notifyEveryFailure>true</notifyEveryFailure>
|
|
<notifyBackToNormal>true</notifyBackToNormal>
|
|
<notifyRegression>true</notifyRegression>
|
|
<notifyRepeatedFailure>true</notifyRepeatedFailure>
|
|
<includeTestSummary>true</includeTestSummary>
|
|
<includeFailedTests>true</includeFailedTests>
|
|
<commitInfoChoice>AUTHORS_AND_TITLES</commitInfoChoice>
|
|
<includeCustomMessage>true</includeCustomMessage>
|
|
<customMessage>A custom message.</customMessage>
|
|
<customMessageSuccess/>
|
|
<customMessageAborted/>
|
|
<customMessageNotBuilt/>
|
|
<customMessageUnstable/>
|
|
<customMessageFailure/>
|
|
<authTokenCredentialId>yourauthtoken</authTokenCredentialId>
|
|
<botUser>true</botUser>
|
|
<baseUrl>https://hooks.slack.com/services/</baseUrl>
|
|
</jenkins.plugins.slack.SlackNotifier>
|
|
</publishers>
|
|
</project>
|