public enum GerritTriggerParameters extends Enum<GerritTriggerParameters>
Modifier and Type | Class and Description |
---|---|
static class |
GerritTriggerParameters.ParameterMode
How a parameter should be added to the triggered build.
|
Enum Constant and Description |
---|
GERRIT_BRANCH
Parameter name for the branch.
|
GERRIT_CHANGE_ABANDONER
The name and email of the abandoner of the change.
|
GERRIT_CHANGE_ABANDONER_EMAIL
The email of the abandoner of the change.
|
GERRIT_CHANGE_ABANDONER_NAME
The name of the abandoner of the change.
|
GERRIT_CHANGE_COMMIT_MESSAGE
Parameter name for the full commit message.
|
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_RESTORER
The name and email of the restorer of the change.
|
GERRIT_CHANGE_RESTORER_EMAIL
The email of the restorer of the change.
|
GERRIT_CHANGE_RESTORER_NAME
The name of the restorer 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_EVENT_ACCOUNT
The name and email of the person who triggered the event.
|
GERRIT_EVENT_ACCOUNT_EMAIL
The email of the person who triggered the event.
|
GERRIT_EVENT_ACCOUNT_NAME
The name of the person who triggered the event.
|
GERRIT_EVENT_HASH
A hashcode of the Gerrit event object, to make sure every set of parameters
is unique (allowing jenkins to queue duplicate builds).
|
GERRIT_EVENT_TYPE
The type of the event.
|
GERRIT_HOST
The host of the Gerrit instance.
|
GERRIT_NAME
The name of the Gerrit instance.
|
GERRIT_NEWREV
The new revision in a ref-updated event.
|
GERRIT_OLDREV
The old revision in a ref-updated event.
|
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_PORT
The port number of the Gerrit instance.
|
GERRIT_PROJECT
Parameter name for the Gerrit project name.
|
GERRIT_REFNAME
The refname in a ref-updated event.
|
GERRIT_REFSPEC
Parameter name for the refspec.
|
GERRIT_SCHEME
The protocol scheme of the Gerrit instance.
|
GERRIT_SUBMITTER
The submitter in a ref-updated event.
|
GERRIT_SUBMITTER_EMAIL
The email of the submitter in a ref-updated event.
|
GERRIT_SUBMITTER_NAME
The name of the submitter in a ref-updated event.
|
GERRIT_TOPIC
Parameter name for the topic.
|
GERRIT_VERSION
The version of the Gerrit instance.
|
Modifier and Type | Method and Description |
---|---|
void |
setOrCreateBase64EncodedStringParameterValue(List<hudson.model.ParameterValue> parameters,
String value,
boolean escapeQuotes)
Creates a
Base64EncodedStringParameterValue and adds it to the provided list. |
static void |
setOrCreateParameters(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent gerritEvent,
hudson.model.Job project,
List<hudson.model.ParameterValue> parameters)
Adds or sets all the Gerrit-parameter values to the provided list.
|
static void |
setOrCreateParameters(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent gerritEvent,
List<hudson.model.ParameterValue> parameters)
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. |
void |
setOrCreateTextParameterValue(List<hudson.model.ParameterValue> parameters,
String value,
boolean escapeQuotes)
Creates a
TextParameterValue 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.
|
public static final GerritTriggerParameters GERRIT_CHANGE_SUBJECT
public static final GerritTriggerParameters GERRIT_CHANGE_COMMIT_MESSAGE
public static final GerritTriggerParameters GERRIT_BRANCH
public static final GerritTriggerParameters GERRIT_TOPIC
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_ABANDONER
public static final GerritTriggerParameters GERRIT_CHANGE_ABANDONER_NAME
public static final GerritTriggerParameters GERRIT_CHANGE_ABANDONER_EMAIL
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_CHANGE_RESTORER
public static final GerritTriggerParameters GERRIT_CHANGE_RESTORER_NAME
public static final GerritTriggerParameters GERRIT_CHANGE_RESTORER_EMAIL
public static final GerritTriggerParameters GERRIT_PATCHSET_UPLOADER
public static final GerritTriggerParameters GERRIT_PATCHSET_UPLOADER_NAME
public static final GerritTriggerParameters GERRIT_PATCHSET_UPLOADER_EMAIL
public static final GerritTriggerParameters GERRIT_EVENT_ACCOUNT
public static final GerritTriggerParameters GERRIT_EVENT_ACCOUNT_NAME
public static final GerritTriggerParameters GERRIT_EVENT_ACCOUNT_EMAIL
public static final GerritTriggerParameters GERRIT_REFNAME
public static final GerritTriggerParameters GERRIT_OLDREV
public static final GerritTriggerParameters GERRIT_NEWREV
public static final GerritTriggerParameters GERRIT_SUBMITTER
public static final GerritTriggerParameters GERRIT_SUBMITTER_NAME
public static final GerritTriggerParameters GERRIT_SUBMITTER_EMAIL
public static final GerritTriggerParameters GERRIT_NAME
public static final GerritTriggerParameters GERRIT_HOST
public static final GerritTriggerParameters GERRIT_PORT
public static final GerritTriggerParameters GERRIT_SCHEME
public static final GerritTriggerParameters GERRIT_VERSION
public static final GerritTriggerParameters GERRIT_EVENT_HASH
public static final GerritTriggerParameters GERRIT_EVENT_TYPE
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 nameNullPointerException
- 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 void setOrCreateTextParameterValue(List<hudson.model.ParameterValue> parameters, String value, boolean escapeQuotes)
TextParameterValue
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 TextParameterValue.parameters
- the list of existing parameters.value
- the value.escapeQuotes
- if quote characters should be escaped.public void setOrCreateBase64EncodedStringParameterValue(List<hudson.model.ParameterValue> parameters, String value, boolean escapeQuotes)
Base64EncodedStringParameterValue
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 Base64EncodedStringParameterValue.parameters
- the list of existing parameters.value
- the value.escapeQuotes
- if quote characters should be escaped.public static void setOrCreateParameters(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent gerritEvent, List<hudson.model.ParameterValue> parameters)
gerritEvent
- the event.parameters
- the default parameterssetOrCreateStringParameterValue(java.util.List, String, boolean)
public static void setOrCreateParameters(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent gerritEvent, hudson.model.Job project, List<hudson.model.ParameterValue> parameters)
gerritEvent
- the event.project
- the project for which the parameters are being setparameters
- the default parameterssetOrCreateStringParameterValue(java.util.List, String, boolean)
Copyright © 2004-2016. All Rights Reserved.