com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class GerritTrigger.RunningJobs

java.lang.Object
  extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.RunningJobs
Enclosing class:
GerritTrigger

public class GerritTrigger.RunningJobs
extends Object

Class for maintaining and synchronizing the runningJobs info. Association between patches and the jobs that we're running for them.


Constructor Summary
GerritTrigger.RunningJobs()
           
 
Method Summary
 hudson.model.ParametersAction remove(com.sonymobile.tools.gerrit.gerritevents.dto.events.ChangeBasedEvent event)
          Removes any reference to the current build for this change.
 void scheduled(com.sonymobile.tools.gerrit.gerritevents.dto.events.ChangeBasedEvent event, hudson.model.ParametersAction parameters, String projectName)
          Does the needful after a build has been scheduled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GerritTrigger.RunningJobs

public GerritTrigger.RunningJobs()
Method Detail

scheduled

public void scheduled(com.sonymobile.tools.gerrit.gerritevents.dto.events.ChangeBasedEvent event,
                      hudson.model.ParametersAction parameters,
                      String projectName)
Does the needful after a build has been scheduled. I.e. cancelling the old build if configured to do so and removing and storing any references.

Parameters:
event - the event triggering a new build.
parameters - the parameters for the new build, used to find it later.
projectName - the name of the current project for better logging.

remove

public hudson.model.ParametersAction remove(com.sonymobile.tools.gerrit.gerritevents.dto.events.ChangeBasedEvent event)
Removes any reference to the current build for this change.

Parameters:
event - the event which started the build we want to remove.
Returns:
the build that was removed.


Copyright © 2004-2014. All Rights Reserved.