com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class GerritTrigger.RunningJobs
java.lang.Object
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.
Method Summary |
hudson.model.ParametersAction |
remove(ChangeBasedEvent event)
Removes any reference to the current build for this change. |
void |
scheduled(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 |
GerritTrigger.RunningJobs
public GerritTrigger.RunningJobs()
scheduled
public void scheduled(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(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-2013. All Rights Reserved.