Class RetriggerAllAction
- java.lang.Object
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions.RetriggerAllAction
-
- All Implemented Interfaces:
Action
,ModelObject
public class RetriggerAllAction extends Object implements Action
Action that retriggers all builds in one event with the same event parameters as the build this trigger is in.- Author:
- Robert Sandell <robert.sandell@sonyericsson.com>
-
-
Constructor Summary
Constructors Constructor Description RetriggerAllAction()
Default constructor.RetriggerAllAction(TriggerContext context)
Standard Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doIndex(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
Handles the request to re-trigger and redirects back to the page that called.String
getDisplayName()
String
getIconFileName()
String
getUrlName()
boolean
isVisible()
Displays the retrigger all option if permission is granted and the build is not already running.
-
-
-
Constructor Detail
-
RetriggerAllAction
public RetriggerAllAction(TriggerContext context)
Standard Constructor.- Parameters:
context
- the original GerritCause's context.
-
RetriggerAllAction
public RetriggerAllAction()
Default constructor. Only use this if you are a serialize.r
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
isVisible
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isVisible()
Displays the retrigger all 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
-
-