Merge "Add support for new parameter option in Slack Plugin"
This commit is contained in:
commit
4b53ba66bf
jenkins_jobs/modules
tests/publishers/fixtures
@ -6419,6 +6419,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
|
||||
@ -6435,7 +6437,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).
|
||||
@ -6492,6 +6494,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…
x
Reference in New Issue
Block a user