Add tokenCredentialId parameter support to generic-webhook-trigger
Change-Id: Ied3cbe3758967659f83637ccea78d834079a1470 Add tokenCredentialId parameter support to generic-webhook-trigger Change-Id: Ied3cbe3758967659f83637ccea78d834079a1470
This commit is contained in:
parent
2f8ac26e86
commit
6d71ade6bd
@ -2608,6 +2608,7 @@ def generic_webhook_trigger(registry, xml_parent, data):
|
|||||||
|
|
||||||
|
|
||||||
:arg str token: A token to use to trigger the job. (default '')
|
:arg str token: A token to use to trigger the job. (default '')
|
||||||
|
:arg str token-credential-id: A token credential id to use to trigger the job. (default '')
|
||||||
:arg bool print-post-content: Print post content in job log.
|
:arg bool print-post-content: Print post content in job log.
|
||||||
:arg bool print-contrib-var: Print contributed variables in job log.
|
:arg bool print-contrib-var: Print contributed variables in job log.
|
||||||
:arg bool silent-response: Avoid responding with information about
|
:arg bool silent-response: Avoid responding with information about
|
||||||
@ -2717,6 +2718,7 @@ def generic_webhook_trigger(registry, xml_parent, data):
|
|||||||
("print-contrib-var", "printContributedVariables", False),
|
("print-contrib-var", "printContributedVariables", False),
|
||||||
("cause", "causeString", ""),
|
("cause", "causeString", ""),
|
||||||
("token", "token", ""),
|
("token", "token", ""),
|
||||||
|
("token-credential-id", "tokenCredentialId", ""),
|
||||||
("silent-response", "silentResponse", False),
|
("silent-response", "silentResponse", False),
|
||||||
]
|
]
|
||||||
# This should cover all the top level
|
# This should cover all the top level
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
<printContributedVariables>true</printContributedVariables>
|
<printContributedVariables>true</printContributedVariables>
|
||||||
<causeString>Generic Cause</causeString>
|
<causeString>Generic Cause</causeString>
|
||||||
<token>blah</token>
|
<token>blah</token>
|
||||||
|
<tokenCredentialId>token_credential_id</tokenCredentialId>
|
||||||
<silentResponse>true</silentResponse>
|
<silentResponse>true</silentResponse>
|
||||||
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
|
@ -23,4 +23,5 @@ triggers:
|
|||||||
print-contrib-var: true
|
print-contrib-var: true
|
||||||
cause: Generic Cause
|
cause: Generic Cause
|
||||||
token: blah
|
token: blah
|
||||||
|
token-credential-id: token_credential_id
|
||||||
silent-response: true
|
silent-response: true
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<printContributedVariables>false</printContributedVariables>
|
<printContributedVariables>false</printContributedVariables>
|
||||||
<causeString/>
|
<causeString/>
|
||||||
<token/>
|
<token/>
|
||||||
|
<tokenCredentialId/>
|
||||||
<silentResponse>false</silentResponse>
|
<silentResponse>false</silentResponse>
|
||||||
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
<printContributedVariables>false</printContributedVariables>
|
<printContributedVariables>false</printContributedVariables>
|
||||||
<causeString/>
|
<causeString/>
|
||||||
<token/>
|
<token/>
|
||||||
|
<tokenCredentialId/>
|
||||||
<silentResponse>false</silentResponse>
|
<silentResponse>false</silentResponse>
|
||||||
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
<printContributedVariables>false</printContributedVariables>
|
<printContributedVariables>false</printContributedVariables>
|
||||||
<causeString/>
|
<causeString/>
|
||||||
<token/>
|
<token/>
|
||||||
|
<tokenCredentialId/>
|
||||||
<silentResponse>false</silentResponse>
|
<silentResponse>false</silentResponse>
|
||||||
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
<printContributedVariables>false</printContributedVariables>
|
<printContributedVariables>false</printContributedVariables>
|
||||||
<causeString/>
|
<causeString/>
|
||||||
<token/>
|
<token/>
|
||||||
|
<tokenCredentialId/>
|
||||||
<silentResponse>false</silentResponse>
|
<silentResponse>false</silentResponse>
|
||||||
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
</org.jenkinsci.plugins.gwt.GenericTrigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
|
Loading…
Reference in New Issue
Block a user