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
-
Method Summary
Modifier and TypeMethodDescriptionReturnsCause
subclass used to determine username.boolean
setJenkinsUserBuildVars
(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.UserIdCause
based implementation.- Specified by:
setJenkinsUserBuildVars
in interfaceIUsernameSettable<Cause.UserIdCause>
- 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.UserIdCause>
- Returns:
- class used to determine username.
-