Add support for new parameter option in Slack Plugin
Change-Id: Ic827d8ee9de057f535fa2b95ab7a7aaa7bc20fee Task: 3457 story: 2000850
This commit is contained in:
parent
8cdb235868
commit
1300071f92
@ -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', ''),
|
||||
)
|
||||
|
@ -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>
|
||||
|
@ -3,3 +3,4 @@ publishers:
|
||||
room: '#builds'
|
||||
team-domain: 'teamname'
|
||||
auth-token: 'yourauthtoken'
|
||||
auth-token-id: 'yourauthtokenid'
|
||||
|
@ -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>
|
||||
|
@ -3,4 +3,5 @@ publishers:
|
||||
room: '#builds'
|
||||
team-domain: 'teamname'
|
||||
auth-token: 'yourauthtoken'
|
||||
auth-token-id: 'yourauthtokenid'
|
||||
build-server-url: 'http://localhost:8081'
|
||||
|
@ -4,6 +4,7 @@
|
||||
<jenkins.plugins.slack.SlackNotifier>
|
||||
<teamDomain/>
|
||||
<authToken/>
|
||||
<authTokenCredentialId/>
|
||||
<buildServerUrl>/</buildServerUrl>
|
||||
<room/>
|
||||
<startNotification>false</startNotification>
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user