Nested Class Summary
Nested Classes
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Resolves the webhook URL.
void
void
void
void
void
void
void
void
void
void
void
void
void
void
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
DEFAULT_TIMEOUT
public static final Integer DEFAULT_TIMEOUT
Constructor Details
Webhook
@DataBoundConstructor
public Webhook (String url)
Method Details
getUrlCredentialId
public String getUrlCredentialId ()
setUrlCredentialId
@DataBoundSetter
public void setUrlCredentialId (String urlCredentialId)
resolveUrl
Resolves the webhook URL. If urlCredentialId is set, the URL is retrieved
from the Jenkins credentials store (Secret Text). Otherwise the plain url field is used.
Parameters:
run - the current build run, used for credential lookup scope
Returns:
the resolved webhook URL
Throws:
IllegalStateException - if neither urlCredentialId nor url is configured,
or the referenced credential is missing or of an unsupported type
setName
@DataBoundSetter
public void setName (String name)
isNotifySuccess
public boolean isNotifySuccess ()
setNotifySuccess
@DataBoundSetter
public void setNotifySuccess (boolean notifySuccess)
isStartNotification
public boolean isStartNotification ()
setStartNotification
@DataBoundSetter
public void setStartNotification (boolean startNotification)
isNotifyAborted
public boolean isNotifyAborted ()
setNotifyAborted
@DataBoundSetter
public void setNotifyAborted (boolean notifyAborted)
isNotifyNotBuilt
public boolean isNotifyNotBuilt ()
setNotifyNotBuilt
@DataBoundSetter
public void setNotifyNotBuilt (boolean notifyNotBuilt)
isNotifyUnstable
public boolean isNotifyUnstable ()
setNotifyUnstable
@DataBoundSetter
public void setNotifyUnstable (boolean notifyUnstable)
isNotifyFailure
public boolean isNotifyFailure ()
setNotifyFailure
@DataBoundSetter
public void setNotifyFailure (boolean notifyFailure)
isNotifyBackToNormal
public boolean isNotifyBackToNormal ()
setNotifyBackToNormal
@DataBoundSetter
public void setNotifyBackToNormal (boolean notifyBackToNormal)
isNotifyRepeatedFailure
public boolean isNotifyRepeatedFailure ()
setNotifyRepeatedFailure
@DataBoundSetter
public void setNotifyRepeatedFailure (boolean notifyRepeatedFailure)
getTimeout
public int getTimeout ()
setTimeout
@DataBoundSetter
public void setTimeout (int timeout)
setAdaptiveCards
@DataBoundSetter
public void setAdaptiveCards (boolean adaptiveCards)
isAdaptiveCards
public boolean isAdaptiveCards ()
setMacros
@DataBoundSetter
public void setMacros (List <Macro > macros)