com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions
Class RetriggerAction

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions.RetriggerAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class RetriggerAction
extends Object
implements hudson.model.Action

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
RetriggerAction()
          Default constructor.
RetriggerAction(TriggerContext context)
          Standard Constructor.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetriggerAction

public RetriggerAction(TriggerContext context)
Standard Constructor.

Parameters:
context - the original GerritCause's context.

RetriggerAction

public RetriggerAction()
Default constructor. Only use this if you are a serializer.

Method Detail

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

doIndex

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


Copyright © 2004-2011. All Rights Reserved.