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