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 team-domain: Your team's domain at slack. (default '')
|
||||||
:arg str auth-token: The integration token to be used when sending
|
:arg str auth-token: The integration token to be used when sending
|
||||||
notifications. (default '')
|
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.
|
:arg str build-server-url: Specify the URL for your server installation.
|
||||||
(default '/')
|
(default '/')
|
||||||
:arg str room: A comma seperated list of rooms / channels to post the
|
: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)
|
(>=2.0). (default false)
|
||||||
:arg bool notify-failure: Send notification when job fails for the first
|
:arg bool notify-failure: Send notification when job fails for the first
|
||||||
time (previous build was a success) (>=2.0). (default false)
|
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)
|
again after being unstable or failed (>=2.0). (default false)
|
||||||
:arg bool notify-repeated-failure: Send notification when job fails
|
:arg bool notify-repeated-failure: Send notification when job fails
|
||||||
successively (previous build was also a failure) (>=2.0).
|
successively (previous build was also a failure) (>=2.0).
|
||||||
@ -6545,6 +6547,7 @@ def slack(registry, xml_parent, data):
|
|||||||
mapping = (
|
mapping = (
|
||||||
('team-domain', 'teamDomain', ''),
|
('team-domain', 'teamDomain', ''),
|
||||||
('auth-token', 'authToken', ''),
|
('auth-token', 'authToken', ''),
|
||||||
|
('auth-token-id', 'authTokenCredentialId', ''),
|
||||||
('build-server-url', 'buildServerUrl', '/'),
|
('build-server-url', 'buildServerUrl', '/'),
|
||||||
('room', 'room', ''),
|
('room', 'room', ''),
|
||||||
)
|
)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<jenkins.plugins.slack.SlackNotifier>
|
<jenkins.plugins.slack.SlackNotifier>
|
||||||
<teamDomain>teamname</teamDomain>
|
<teamDomain>teamname</teamDomain>
|
||||||
<authToken>yourauthtoken</authToken>
|
<authToken>yourauthtoken</authToken>
|
||||||
|
<authTokenCredentialId>yourauthtokenid</authTokenCredentialId>
|
||||||
<buildServerUrl>/</buildServerUrl>
|
<buildServerUrl>/</buildServerUrl>
|
||||||
<room>#builds</room>
|
<room>#builds</room>
|
||||||
</jenkins.plugins.slack.SlackNotifier>
|
</jenkins.plugins.slack.SlackNotifier>
|
||||||
|
@ -3,3 +3,4 @@ publishers:
|
|||||||
room: '#builds'
|
room: '#builds'
|
||||||
team-domain: 'teamname'
|
team-domain: 'teamname'
|
||||||
auth-token: 'yourauthtoken'
|
auth-token: 'yourauthtoken'
|
||||||
|
auth-token-id: 'yourauthtokenid'
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<jenkins.plugins.slack.SlackNotifier>
|
<jenkins.plugins.slack.SlackNotifier>
|
||||||
<teamDomain>teamname</teamDomain>
|
<teamDomain>teamname</teamDomain>
|
||||||
<authToken>yourauthtoken</authToken>
|
<authToken>yourauthtoken</authToken>
|
||||||
|
<authTokenCredentialId>yourauthtokenid</authTokenCredentialId>
|
||||||
<buildServerUrl>http://localhost:8081</buildServerUrl>
|
<buildServerUrl>http://localhost:8081</buildServerUrl>
|
||||||
<room>#builds</room>
|
<room>#builds</room>
|
||||||
</jenkins.plugins.slack.SlackNotifier>
|
</jenkins.plugins.slack.SlackNotifier>
|
||||||
|
@ -3,4 +3,5 @@ publishers:
|
|||||||
room: '#builds'
|
room: '#builds'
|
||||||
team-domain: 'teamname'
|
team-domain: 'teamname'
|
||||||
auth-token: 'yourauthtoken'
|
auth-token: 'yourauthtoken'
|
||||||
|
auth-token-id: 'yourauthtokenid'
|
||||||
build-server-url: 'http://localhost:8081'
|
build-server-url: 'http://localhost:8081'
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<jenkins.plugins.slack.SlackNotifier>
|
<jenkins.plugins.slack.SlackNotifier>
|
||||||
<teamDomain/>
|
<teamDomain/>
|
||||||
<authToken/>
|
<authToken/>
|
||||||
|
<authTokenCredentialId/>
|
||||||
<buildServerUrl>/</buildServerUrl>
|
<buildServerUrl>/</buildServerUrl>
|
||||||
<room/>
|
<room/>
|
||||||
<startNotification>false</startNotification>
|
<startNotification>false</startNotification>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<jenkins.plugins.slack.SlackNotifier>
|
<jenkins.plugins.slack.SlackNotifier>
|
||||||
<teamDomain>teamname</teamDomain>
|
<teamDomain>teamname</teamDomain>
|
||||||
<authToken>yourauthtoken</authToken>
|
<authToken>yourauthtoken</authToken>
|
||||||
|
<authTokenCredentialId>yourauthtokenid</authTokenCredentialId>
|
||||||
<buildServerUrl>http://localhost:8081</buildServerUrl>
|
<buildServerUrl>http://localhost:8081</buildServerUrl>
|
||||||
<room>#builds</room>
|
<room>#builds</room>
|
||||||
<startNotification>true</startNotification>
|
<startNotification>true</startNotification>
|
||||||
|
@ -2,6 +2,7 @@ publishers:
|
|||||||
- slack:
|
- slack:
|
||||||
team-domain: 'teamname'
|
team-domain: 'teamname'
|
||||||
auth-token: 'yourauthtoken'
|
auth-token: 'yourauthtoken'
|
||||||
|
auth-token-id: 'yourauthtokenid'
|
||||||
build-server-url: 'http://localhost:8081'
|
build-server-url: 'http://localhost:8081'
|
||||||
room: '#builds'
|
room: '#builds'
|
||||||
notify-start: True
|
notify-start: True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user