public interface IUsernameSettable<T extends Cause>
Cause
subclasses.
User based Cause
instance is the source of username data.
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_USER_EMAIL
Email of user started build
|
static String |
BUILD_USER_FIRST_NAME_VAR_NAME
First name of user started build
|
static String |
BUILD_USER_ID
Id of user started build
|
static String |
BUILD_USER_LAST_NAME_VAR_NAME
Last name of user started build
|
static String |
BUILD_USER_VAR_GROUPS
Groups username belongs to
|
static String |
BUILD_USER_VAR_NAME
Full name of user started build
|
static String |
UNDEFINED
Optional value for variable which value couldn't be defined.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getUsedCauseClass()
Returns
Cause subclass used to determine user name. |
boolean |
setJenkinsUserBuildVars(T cause,
Map<String,String> variables)
Adds username build variables extracted from build cause to map of build variables.
|
static final String BUILD_USER_VAR_NAME
static final String BUILD_USER_VAR_GROUPS
static final String BUILD_USER_FIRST_NAME_VAR_NAME
static final String BUILD_USER_LAST_NAME_VAR_NAME
static final String BUILD_USER_EMAIL
static final String BUILD_USER_ID
static final String UNDEFINED
boolean setJenkinsUserBuildVars(T cause, Map<String,String> variables)
cause
- cause where to get username from.variables
- map of build variables, where to add username variables.true
if username was determined and added to the passed map,
false
otherwise.Copyright © 2016–2022. All rights reserved.