Class WebhookCredentials
java.lang.Object
io.jenkins.plugins.interactiveinput.notify.WebhookCredentials
Secret-text credential lookup and form fill for Slack/Teams webhook URLs. The fill method always
checks
Item.CONFIGURE (or Jenkins.ADMINISTER when there is no item) before listing
credentials — required by the credentials consumer guide and by Stapler permission scans.-
Method Summary
Modifier and TypeMethodDescriptionstatic ListBoxModelPopulate the webhook credentials dropdown.static StringsecretText(Item item, String credentialsId) Resolve a Secret-text credential in the job's context.
-
Method Details
-
listBox
Populate the webhook credentials dropdown. Empty when the caller cannot configure the item.- Parameters:
item- the job being configured, ornullon a global formcurrent- the currently selected credentials id (kept visible via includeCurrentValue);nullis treated as empty becauseincludeCurrentValueis@NonNull
-
secretText
@CheckForNull public static String secretText(@CheckForNull Item item, @CheckForNull String credentialsId) Resolve a Secret-text credential in the job's context. Caller must already be SYSTEM or otherwise authorised; the dispatcher wraps workers inACL.SYSTEM2.- Returns:
- the secret string, or
nullif missing
-