Interface IUsernameSettable<T extends Cause>
- All Known Implementing Classes:
BranchIndexingTriggerDeterminant,RemoteCauseDeterminant,SCMTriggerCauseDeterminant,TimerTriggerCauseDeterminant,UserCauseDeterminant,UserIdCauseDeterminant
public interface IUsernameSettable<T extends Cause>
Interface declaring method for setting jenkins user build variables parametrized by
Cause subclasses.
User based Cause instance is the source of username data.
- BUILD_USER -- full name of user started build,
- BUILD_USER_FIRST_NAME -- first name of user started build,
- BUILD_USER_LAST_NAME -- last name of user started build,
- BUILD_USER_ID -- id of user started build.
- Author:
- GKonovalenko
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEmail of user started buildstatic final StringFirst name of user started buildstatic final StringId of user started buildstatic final StringLast name of user started buildstatic final StringGroups username belongs tostatic final StringFull name of user started buildstatic final StringOptional value for variable which value couldn't be defined. -
Method Summary
-
Field Details
-
BUILD_USER_VAR_NAME
Full name of user started build- See Also:
-
BUILD_USER_VAR_GROUPS
Groups username belongs to- See Also:
-
BUILD_USER_FIRST_NAME_VAR_NAME
First name of user started build- See Also:
-
BUILD_USER_LAST_NAME_VAR_NAME
Last name of user started build- See Also:
-
BUILD_USER_EMAIL
Email of user started build- See Also:
-
BUILD_USER_ID
Id of user started build- See Also:
-
UNDEFINED
Optional value for variable which value couldn't be defined.- See Also:
-
-
Method Details
-
setJenkinsUserBuildVars
Adds username build variables extracted from build cause to map of build variables.- Parameters:
cause- cause where to get username from.variables- map of build variables, where to add username variables.- Returns:
trueif username was determined and added to the passed map,falseotherwise.
-
getUsedCauseClass
ReturnsCausesubclass used to determine user name.- Returns:
- class used to determine user name.
-