Add support for new parameter option in Slack Plugin

Change-Id: Ic827d8ee9de057f535fa2b95ab7a7aaa7bc20fee
Task: 3457
story: 2000850
This commit is contained in:
Yolande Amate 2017-07-24 23:45:59 +01:00
parent 8cdb235868
commit 1300071f92
8 changed files with 11 additions and 1 deletions

View File

@ -6481,6 +6481,8 @@ def slack(registry, xml_parent, data):
:arg str team-domain: Your team's domain at slack. (default '')
:arg str auth-token: The integration token to be used when sending
notifications. (default '')
:arg str auth-token-id: Allows credentials to be stored in Jenkins.
(default '')
:arg str build-server-url: Specify the URL for your server installation.
(default '/')
:arg str room: A comma seperated list of rooms / channels to post the
@ -6497,7 +6499,7 @@ def slack(registry, xml_parent, data):
(>=2.0). (default false)
:arg bool notify-failure: Send notification when job fails for the first
time (previous build was a success) (>=2.0). (default false)
:arg bool notifiy-back-to-normal: Send notification when job is succeeding
:arg bool notify-back-to-normal: Send notification when job is succeeding
again after being unstable or failed (>=2.0). (default false)
:arg bool notify-repeated-failure: Send notification when job fails
successively (previous build was also a failure) (>=2.0).
@ -6545,6 +6547,7 @@ def slack(registry, xml_parent, data):
mapping = (
('team-domain', 'teamDomain', ''),
('auth-token', 'authToken', ''),
('auth-token-id', 'authTokenCredentialId', ''),
('build-server-url', 'buildServerUrl', '/'),
('room', 'room', ''),
)

View File

@ -4,6 +4,7 @@
<jenkins.plugins.slack.SlackNotifier>
<teamDomain>teamname</teamDomain>
<authToken>yourauthtoken</authToken>
<authTokenCredentialId>yourauthtokenid</authTokenCredentialId>
<buildServerUrl>/</buildServerUrl>
<room>#builds</room>
</jenkins.plugins.slack.SlackNotifier>

View File

@ -3,3 +3,4 @@ publishers:
room: '#builds'
team-domain: 'teamname'
auth-token: 'yourauthtoken'
auth-token-id: 'yourauthtokenid'

View File

@ -4,6 +4,7 @@
<jenkins.plugins.slack.SlackNotifier>
<teamDomain>teamname</teamDomain>
<authToken>yourauthtoken</authToken>
<authTokenCredentialId>yourauthtokenid</authTokenCredentialId>
<buildServerUrl>http://localhost:8081</buildServerUrl>
<room>#builds</room>
</jenkins.plugins.slack.SlackNotifier>

View File

@ -3,4 +3,5 @@ publishers:
room: '#builds'
team-domain: 'teamname'
auth-token: 'yourauthtoken'
auth-token-id: 'yourauthtokenid'
build-server-url: 'http://localhost:8081'

View File

@ -4,6 +4,7 @@
<jenkins.plugins.slack.SlackNotifier>
<teamDomain/>
<authToken/>
<authTokenCredentialId/>
<buildServerUrl>/</buildServerUrl>
<room/>
<startNotification>false</startNotification>

View File

@ -4,6 +4,7 @@
<jenkins.plugins.slack.SlackNotifier>
<teamDomain>teamname</teamDomain>
<authToken>yourauthtoken</authToken>
<authTokenCredentialId>yourauthtokenid</authTokenCredentialId>
<buildServerUrl>http://localhost:8081</buildServerUrl>
<room>#builds</room>
<startNotification>true</startNotification>

View File

@ -2,6 +2,7 @@ publishers:
- slack:
team-domain: 'teamname'
auth-token: 'yourauthtoken'
auth-token-id: 'yourauthtokenid'
build-server-url: 'http://localhost:8081'
room: '#builds'
notify-start: True