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
-
Method Summary
Modifier and TypeMethodDescriptionReturnsCause
subclass used to determine username.boolean
setJenkinsUserBuildVars
(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.UserCause
based implementation.- Specified by:
setJenkinsUserBuildVars
in interfaceIUsernameSettable<Cause.UserCause>
- Parameters:
cause
- cause where to get username from.variables
- ap of build variables, where to add username variables.- Returns:
true
if username was determined and added to the passed map,false
otherwise.
-
getUsedCauseClass
ReturnsCause
subclass used to determine username.- Specified by:
getUsedCauseClass
in interfaceIUsernameSettable<Cause.UserCause>
- Returns:
- class used to determine username.
-