|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.serverSide.TriggeredByBuilder
public class TriggeredByBuilder
Builder which can be used to store some relevant information in triggered by field of a build.
Information can be stored as a number of name = value pairs.
The map of name = value pairs will then be provided to TriggeredByProcessor extension
to convert to a text which should be shown in the UI.
The builder is not thread safe.
| Field Summary | |
|---|---|
static java.lang.String |
BUILD_TYPE_ID_PARAM_NAME
|
static java.lang.String |
IDE_PLUGIN_PARAM_NAME
|
static int |
MAX_LENGTH
|
static java.lang.String |
PARAMETERS_PREFIX
|
static java.lang.String |
RE_ADDED_AFTER_STOP_NAME
|
static java.lang.String |
SHOW_AS_IS
|
static java.lang.String |
USER_PARAM_NAME
|
static java.lang.String |
VCS_NAME_PARAM_NAME
|
| Constructor Summary | |
|---|---|
TriggeredByBuilder()
Use this constructor if build is not triggered by a user. |
|
TriggeredByBuilder(User userWhoTriggeredBuild)
Use this constructor if build is triggered manually by a user. |
|
| Method Summary | |
|---|---|
void |
addParameter(java.lang.String paramName,
java.lang.String paramValue)
Adds new parameter to the map. |
void |
addParameters(java.util.Map<java.lang.String,java.lang.String> params)
Adds new parameters to the map. |
void |
reset()
Clears all added parameters. |
java.lang.String |
toString()
Transforms map to a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_LENGTH
public static final java.lang.String PARAMETERS_PREFIX
public static final java.lang.String USER_PARAM_NAME
public static final java.lang.String IDE_PLUGIN_PARAM_NAME
public static final java.lang.String BUILD_TYPE_ID_PARAM_NAME
public static final java.lang.String VCS_NAME_PARAM_NAME
public static final java.lang.String SHOW_AS_IS
public static final java.lang.String RE_ADDED_AFTER_STOP_NAME
| Constructor Detail |
|---|
public TriggeredByBuilder(@NotNull
User userWhoTriggeredBuild)
userWhoTriggeredBuild - user triggered buildpublic TriggeredByBuilder()
| Method Detail |
|---|
public void addParameter(@NotNull
java.lang.String paramName,
@NotNull
java.lang.String paramValue)
throws java.lang.IllegalArgumentException
paramName - name of the parameterparamValue - value of the parameter
java.lang.IllegalArgumentException - in case if length of serialized map of parameters exceeds max length MAX_LENGTH
public void addParameters(@NotNull
java.util.Map<java.lang.String,java.lang.String> params)
throws java.lang.IllegalArgumentException
params - parameters to add
java.lang.IllegalArgumentException - in case if length of serialized map of parameters exceeds max length MAX_LENGTHpublic void reset()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||