@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public abstract static class ScanOnDemandBaseAction.ScanMode extends Object implements hudson.ExtensionPoint
Constructor and Description |
---|
ScanMode() |
Modifier and Type | Method and Description |
---|---|
static List<ScanOnDemandBaseAction.ScanMode> |
all()
Provides the lookup list of all registered
ScanOnDemandBaseAction.ScanMode s. |
void |
doPerformScan(ScanOnDemandBaseAction action,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Submit method for running build scan.
|
abstract String |
getDisplayName()
Human readable name to display.
|
String |
getFullUrl()
The full url from the root of Jenkins.
|
ScanOnDemandBaseAction |
getParent()
Finds the
ScanOnDemandBaseAction in the ancestor path. |
abstract String |
getUrlName()
The short relative url name of this scan mode.
|
boolean |
hasAnyRun(hudson.model.Job job)
If there is any run in the job matching this scan mode's criteria.
|
void |
setAsDefault()
Sets this scan mode as the default for this user on future page visits.
|
public boolean hasAnyRun(hudson.model.Job job)
getRuns(Job)
.hasNext()
job
- the job to check@Nonnull public abstract String getUrlName()
@CheckForNull public String getFullUrl()
ScanOnDemandBaseAction.getFullUrl()
@Nonnull public abstract String getDisplayName()
public void setAsDefault()
@Nonnull public ScanOnDemandBaseAction getParent()
ScanOnDemandBaseAction
in the ancestor path.
Throws IllegalStateException
if we are not in the request scope and
Stapler.getCurrentRequest()
returns null.public void doPerformScan(@AncestorInPath ScanOnDemandBaseAction action, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws javax.servlet.ServletException, IOException, InterruptedException
action
- the action we have as an ancestorrequest
- StaplerRequestresponse
- StaplerResponsejavax.servlet.ServletException
- if something unfortunate happens.IOException
- if something unfortunate happens.InterruptedException
- if something unfortunate happens.public static List<ScanOnDemandBaseAction.ScanMode> all()
ScanOnDemandBaseAction.ScanMode
s.Copyright © 2016–2021. All rights reserved.