Class RetriggerAction
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions.RetriggerAction
- All Implemented Interfaces:
 Action,ModelObject
Action that retriggers one build with the same event parameters as the build this trigger is in.
- Author:
 - Robert Sandell <robert.sandell@sonyericsson.com>
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.RetriggerAction(TriggerContext context) Standard Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionvoiddoIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Handles the request to re-trigger and redirects back to the page that called.booleanDisplays the retrigger option if permission is granted and the build is not already running. 
- 
Constructor Details
- 
RetriggerAction
Standard Constructor.- Parameters:
 context- the original GerritCause's context.
 - 
RetriggerAction
public RetriggerAction()Default constructor. Only use this if you are a serializer. 
 - 
 - 
Method Details
- 
getIconFileName
- Specified by:
 getIconFileNamein interfaceAction
 - 
getDisplayName
- Specified by:
 getDisplayNamein interfaceAction- Specified by:
 getDisplayNamein interfaceModelObject
 - 
getUrlName
- Specified by:
 getUrlNamein interfaceAction
 - 
isVisible
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isVisible()Displays the retrigger option if permission is granted and the build is not already running.- Returns:
 - true if so.
 
 - 
doIndex
@POST public void doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException Handles the request to re-trigger and redirects back to the page that called.- Parameters:
 request- StaplerRequest the request.response- StaplerResponse the response handler.- Throws:
 IOException- in case of Stapler issues
 
 -