Class SCMTriggerCauseDeterminant
java.lang.Object
org.jenkinsci.plugins.builduser.varsetter.impl.SCMTriggerCauseDeterminant
- All Implemented Interfaces:
IUsernameSettable<SCMTrigger.SCMTriggerCause>
public class SCMTriggerCauseDeterminant
extends Object
implements IUsernameSettable<SCMTrigger.SCMTriggerCause>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturnsCause
subclass used to determine username.boolean
setJenkinsUserBuildVars
(SCMTrigger.SCMTriggerCause cause, Map<String, String> variables) Adds username build variables extracted from build cause to map of build variables.
-
Constructor Details
-
SCMTriggerCauseDeterminant
public SCMTriggerCauseDeterminant()
-
-
Method Details
-
setJenkinsUserBuildVars
public boolean setJenkinsUserBuildVars(SCMTrigger.SCMTriggerCause cause, Map<String, String> variables) Description copied from interface:IUsernameSettable
Adds username build variables extracted from build cause to map of build variables.- Specified by:
setJenkinsUserBuildVars
in interfaceIUsernameSettable<SCMTrigger.SCMTriggerCause>
- 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
Description copied from interface:IUsernameSettable
ReturnsCause
subclass used to determine username.- Specified by:
getUsedCauseClass
in interfaceIUsernameSettable<SCMTrigger.SCMTriggerCause>
- Returns:
- class used to determine username.
-