public class RebuildAction extends Object implements hudson.model.Action
| Constructor and Description |
|---|
RebuildAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Saves the form to the configuration and disk.
|
void |
doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Handles the rebuild request and redirects to parameterized
and non parameterized build when needed.
|
hudson.model.AbstractBuild<?,?> |
getBuild()
Getter method for build.
|
String |
getDisplayName() |
String |
getIconFileName() |
String |
getP()
Getter method for p.
|
String |
getParameters()
Getter method for parameters.
|
hudson.model.ParameterValue |
getParameterValue(hudson.model.ParametersDefinitionProperty paramDefProp,
String parameterName,
hudson.model.ParametersAction paramAction,
org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo)
Method for getting the ParameterValue instance from ParameterDefinition
or ParamterAction.
|
hudson.model.ParametersDefinitionProperty |
getPdp()
Getter method for pdp.
|
hudson.model.AbstractProject |
getProject()
Method will return current project.
|
String |
getRebuildurl()
Getter method for rebuildurl.
|
String |
getUrlName() |
boolean |
isMatrixRun()
Method for checking whether current build is sub job(MatrixRun) of Matrix
build.
|
boolean |
isRebuildAvailable()
Method for checking,whether the rebuild functionality would be available
for build.
|
void |
nonParameterizedRebuild(hudson.model.AbstractBuild currentBuild,
org.kohsuke.stapler.StaplerResponse response)
Call this method while rebuilding
non parameterized build.
|
public hudson.model.ParametersDefinitionProperty getPdp()
public hudson.model.AbstractBuild<?,?> getBuild()
public String getP()
public String getParameters()
public String getRebuildurl()
public hudson.model.AbstractProject getProject()
public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic void doIndex(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws IOException,
javax.servlet.ServletException,
InterruptedException
request - StaplerRequest the request.response - StaplerResponse the response handler.IOException - in case of Stapler issuesjavax.servlet.ServletException - if something unfortunate happens.InterruptedException - if something unfortunate happens.public void nonParameterizedRebuild(hudson.model.AbstractBuild currentBuild,
org.kohsuke.stapler.StaplerResponse response)
throws javax.servlet.ServletException,
IOException,
InterruptedException
currentBuild - current build.response - current response object.javax.servlet.ServletException - if something unfortunate happens.IOException - if something unfortunate happens.InterruptedException - if something unfortunate happens.public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws javax.servlet.ServletException,
IOException,
InterruptedException
req - StaplerRequestrsp - StaplerResponsejavax.servlet.ServletException - if something unfortunate happens.IOException - if something unfortunate happens.InterruptedException - if something unfortunate happens.public boolean isMatrixRun()
public boolean isRebuildAvailable()
public hudson.model.ParameterValue getParameterValue(hudson.model.ParametersDefinitionProperty paramDefProp,
String parameterName,
hudson.model.ParametersAction paramAction,
org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo)
paramDefProp - ParametersDefinitionPropertyparameterName - Name of the Parameter.paramAction - ParametersActionreq - StaplerRequestjo - JSONObjectCopyright © 2004-2015 Hudson. All Rights Reserved.