Class UserIdCauseDeterminant
java.lang.Object
org.jenkinsci.plugins.builduser.varsetter.impl.UserIdCauseDeterminant
- All Implemented Interfaces:
IUsernameSettable<Cause.UserIdCause>
This implementation is used to determine build username variables from
Cause.UserIdCause.- Author:
- GKonovalenko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsCausesubclass used to determine username.booleansetJenkinsUserBuildVars(Cause.UserIdCause cause, Map<String, String> variables) Adds username build variables extracted from build cause to map of build variables.
-
Constructor Details
-
UserIdCauseDeterminant
public UserIdCauseDeterminant()
-
-
Method Details
-
setJenkinsUserBuildVars
Adds username build variables extracted from build cause to map of build variables.Cause.UserIdCausebased implementation.- Specified by:
setJenkinsUserBuildVarsin interfaceIUsernameSettable<Cause.UserIdCause>- Parameters:
cause- cause where to get username from.variables- ap 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 username.- Specified by:
getUsedCauseClassin interfaceIUsernameSettable<Cause.UserIdCause>- Returns:
- class used to determine username.
-