|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.ParameterExpander
public class ParameterExpander
Expands a parameterized string to its full potential.
Field Summary | |
---|---|
static int |
DEFAULT_PARAMETERS_COUNT
How many default parameters there are (plus one) to initialize the size of the parameters-map. |
static String |
MESSAGE_DELIMITER
The delimiter used to separate build URLs from their messages. |
Constructor Summary | |
---|---|
ParameterExpander(IGerritHudsonTriggerConfig config)
Constructor. |
|
ParameterExpander(IGerritHudsonTriggerConfig config,
hudson.model.Hudson hudson)
Constructor. |
Method Summary | |
---|---|
String |
getBuildCompletedCommand(BuildMemory.MemoryImprint memoryImprint,
hudson.model.TaskListener listener)
Gets the "expanded" build completed command to send to gerrit. |
String |
getBuildStartedCommand(hudson.model.AbstractBuild r,
hudson.model.TaskListener taskListener,
PatchsetCreated event,
BuildsStartedStats stats)
Gets the expanded string to send to Gerrit for a build-started event. |
protected int |
getCodeReviewValue(hudson.model.Result res,
GerritTrigger trigger)
Finds the code review value for the specified build result on the configured trigger. |
protected int |
getMinimumCodeReviewValue(BuildMemory.MemoryImprint memoryImprint)
Returns the minimum code review value for the build results in the memory. |
protected int |
getMinimumVerifiedValue(BuildMemory.MemoryImprint memoryImprint)
Returns the minimum verified value for the build results in the memory. |
protected int |
getVerifiedValue(hudson.model.Result res,
GerritTrigger trigger)
Finds the verified value for the specified build result on the configured trigger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PARAMETERS_COUNT
public static final String MESSAGE_DELIMITER
Constructor Detail |
---|
public ParameterExpander(IGerritHudsonTriggerConfig config, hudson.model.Hudson hudson)
config
- the global config.hudson
- the Hudson instance.public ParameterExpander(IGerritHudsonTriggerConfig config)
config
- the global config.Method Detail |
---|
public String getBuildStartedCommand(hudson.model.AbstractBuild r, hudson.model.TaskListener taskListener, PatchsetCreated event, BuildsStartedStats stats)
r
- the build.taskListener
- the taskListener.event
- the event.stats
- the statistics.
protected int getCodeReviewValue(hudson.model.Result res, GerritTrigger trigger)
res
- the build result.trigger
- the trigger that might have overridden values.
protected int getVerifiedValue(hudson.model.Result res, GerritTrigger trigger)
res
- the build result.trigger
- the trigger that might have overridden values.
protected int getMinimumVerifiedValue(BuildMemory.MemoryImprint memoryImprint)
memoryImprint
- the memory.
protected int getMinimumCodeReviewValue(BuildMemory.MemoryImprint memoryImprint)
memoryImprint
- the memory
public String getBuildCompletedCommand(BuildMemory.MemoryImprint memoryImprint, hudson.model.TaskListener listener)
memoryImprint
- the memory with all the informationlistener
- the taskListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |