@Extension public final class ClaimConfig extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfExtensionPoint.LegacyInstancesAreScopedToHudsonclazz| Constructor and Description |
|---|
ClaimConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
static ClaimConfig |
get()
Gets the current claim configuration.
|
String |
getDisplayName()
This human readable name is used in the configuration screen.
|
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript |
getGroovyTrigger() |
boolean |
getSendEmails()
This method returns true if the global configuration says we should send mails on build claims.
|
boolean |
hasGroovyTrigger() |
boolean |
isBlockAutoRefreshWhileClaiming()
Indicates if auto refresh is blocked while claiming.
|
boolean |
isPropagateToFollowingBuildsByDefault()
Returns true if the claims should be propagated to following builds by default, false otherwise.
|
boolean |
isSortUsersByFullName()
Returns true if the users should be sorted by full name instead of ids.
|
boolean |
isStickyByDefault()
Returns true if the claims should be sticky by default, false otherwise.
|
void |
setBlockAutoRefreshWhileClaiming(boolean blockAutoRefreshWhileClaiming)
Sets if auto refresh is blocked while claiming.
|
void |
setPropagateToFollowingBuildsByDefault(boolean propagateToFollowingBuildsByDefault)
Sets the default following builds propagation behaviour for claims.
|
void |
setSendEmails(boolean val)
Set whether we should send emails.
|
void |
setSortUsersByFullName(boolean sortUsersByFullName)
Sets the user sort method.
|
void |
setStickyByDefault(boolean stickyByDefault)
Sets the default stickiness behaviour for build claims.
|
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@Nonnull public String getDisplayName()
getDisplayName in class Descriptor<GlobalConfiguration>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws Descriptor.FormException
configure in class GlobalConfigurationDescriptor.FormExceptionpublic boolean getSendEmails()
public void setSendEmails(boolean val)
val - the setting to usepublic boolean isStickyByDefault()
public void setStickyByDefault(boolean stickyByDefault)
stickyByDefault - the default stickiness value.public boolean isPropagateToFollowingBuildsByDefault()
public void setPropagateToFollowingBuildsByDefault(boolean propagateToFollowingBuildsByDefault)
propagateToFollowingBuildsByDefault - the default following build propagation value.public boolean isSortUsersByFullName()
public void setSortUsersByFullName(boolean sortUsersByFullName)
sortUsersByFullName - true to make users sorted by full name, else false.public boolean isBlockAutoRefreshWhileClaiming()
public void setBlockAutoRefreshWhileClaiming(boolean blockAutoRefreshWhileClaiming)
blockAutoRefreshWhileClaiming - true if auto refresh is blocked, else false;@Nonnull public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getGroovyTrigger()
public boolean hasGroovyTrigger()
public static ClaimConfig get()
Copyright © 2016–2020. All rights reserved.