public class GerritNotifier extends Object
Constructor and Description |
---|
GerritNotifier(IGerritHudsonTriggerConfig config,
com.sonymobile.tools.gerrit.gerritevents.GerritCmdRunner cmdRunner)
Constructor.
|
GerritNotifier(IGerritHudsonTriggerConfig config,
com.sonymobile.tools.gerrit.gerritevents.GerritCmdRunner cmdRunner,
hudson.model.Hudson hudson)
Constructor for testing.
|
Modifier and Type | Method and Description |
---|---|
void |
buildCompleted(BuildMemory.MemoryImprint memoryImprint,
hudson.model.TaskListener listener)
Generates the build-completed command based on configured templates and build-values and sends it to Gerrit.
|
void |
buildStarted(hudson.model.Run build,
hudson.model.TaskListener taskListener,
com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event,
BuildsStartedStats stats)
Generates the build-started command based on configured templates and build-values and sends it to Gerrit.
|
public GerritNotifier(IGerritHudsonTriggerConfig config, com.sonymobile.tools.gerrit.gerritevents.GerritCmdRunner cmdRunner)
config
- the config.cmdRunner
- the command-runner.public GerritNotifier(IGerritHudsonTriggerConfig config, com.sonymobile.tools.gerrit.gerritevents.GerritCmdRunner cmdRunner, hudson.model.Hudson hudson)
config
- the config.cmdRunner
- the command-runner.hudson
- the hudson instance.public void buildStarted(hudson.model.Run build, hudson.model.TaskListener taskListener, com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event, BuildsStartedStats stats)
build
- the build.taskListener
- the taskListener.event
- the event.stats
- the stats.public void buildCompleted(BuildMemory.MemoryImprint memoryImprint, hudson.model.TaskListener listener)
memoryImprint
- the memory of all the builds for an event.listener
- the taskListener.Copyright © 2004-2015. All Rights Reserved.