|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GerritTriggerParameters>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerParameters
public enum GerritTriggerParameters
The parameters to add to a build.
Enum Constant Summary | |
---|---|
GERRIT_BRANCH
Parameter name for the branch. |
|
GERRIT_CHANGE_ID
Parameter name for the change-id. |
|
GERRIT_CHANGE_NUMBER
Parameter name for the change number. |
|
GERRIT_CHANGE_OWNER
The name and email of the owner of the change. |
|
GERRIT_CHANGE_OWNER_EMAIL
The email of the owner of the change. |
|
GERRIT_CHANGE_OWNER_NAME
The name of the owner of the change. |
|
GERRIT_CHANGE_SUBJECT
Parameter name for the commit subject (commit message's 1st line). |
|
GERRIT_CHANGE_URL
Parameter name for the URL to the change. |
|
GERRIT_PATCHSET_NUMBER
Parameter name for the patch set number. |
|
GERRIT_PATCHSET_REVISION
Parameter name for the patch set revision. |
|
GERRIT_PATCHSET_UPLOADER
The name and email of the uploader of the patch-set. |
|
GERRIT_PATCHSET_UPLOADER_EMAIL
The email of the uploader of the patch-set. |
|
GERRIT_PATCHSET_UPLOADER_NAME
The name of the uploader of the patch-set. |
|
GERRIT_PROJECT
Parameter name for the Gerrit project name. |
|
GERRIT_REFSPEC
Parameter name for the refspec. |
Method Summary | |
---|---|
static void |
setOrCreateParameters(PatchsetCreated event,
List<hudson.model.ParameterValue> parameters,
boolean escapeQuotes)
Adds or sets all the Gerrit-parameter values to the provided list. |
void |
setOrCreateStringParameterValue(List<hudson.model.ParameterValue> parameters,
String value,
boolean escapeQuotes)
Creates a StringParameterValue and adds it to the provided list. |
static GerritTriggerParameters |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GerritTriggerParameters[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GerritTriggerParameters GERRIT_CHANGE_SUBJECT
public static final GerritTriggerParameters GERRIT_BRANCH
public static final GerritTriggerParameters GERRIT_CHANGE_ID
public static final GerritTriggerParameters GERRIT_CHANGE_NUMBER
public static final GerritTriggerParameters GERRIT_CHANGE_URL
public static final GerritTriggerParameters GERRIT_PATCHSET_NUMBER
public static final GerritTriggerParameters GERRIT_PATCHSET_REVISION
public static final GerritTriggerParameters GERRIT_PROJECT
public static final GerritTriggerParameters GERRIT_REFSPEC
public static final GerritTriggerParameters GERRIT_CHANGE_OWNER
public static final GerritTriggerParameters GERRIT_CHANGE_OWNER_NAME
public static final GerritTriggerParameters GERRIT_CHANGE_OWNER_EMAIL
public static final GerritTriggerParameters GERRIT_PATCHSET_UPLOADER
public static final GerritTriggerParameters GERRIT_PATCHSET_UPLOADER_NAME
public static final GerritTriggerParameters GERRIT_PATCHSET_UPLOADER_EMAIL
Method Detail |
---|
public static GerritTriggerParameters[] values()
for (GerritTriggerParameters c : GerritTriggerParameters.values()) System.out.println(c);
public static GerritTriggerParameters valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic void setOrCreateStringParameterValue(List<hudson.model.ParameterValue> parameters, String value, boolean escapeQuotes)
StringParameterValue
and adds it to the provided list.
If the parameter with the same name already exists in the list it will be replaced by the new parameter,
but its description will be used, unless the parameter type is something else than a StringParameterValue.
parameters
- the list of existing parameters.value
- the value.escapeQuotes
- if quote characters should be escaped.public static void setOrCreateParameters(PatchsetCreated event, List<hudson.model.ParameterValue> parameters, boolean escapeQuotes)
event
- the event.parameters
- the default parametersescapeQuotes
- if quotes should be escaped or not.setOrCreateStringParameterValue(java.util.List, String, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |