Class TimerTriggerCauseDeterminant
java.lang.Object
org.jenkinsci.plugins.builduser.varsetter.impl.TimerTriggerCauseDeterminant
- All Implemented Interfaces:
IUsernameSettable<TimerTrigger.TimerTriggerCause>
public class TimerTriggerCauseDeterminant
extends Object
implements IUsernameSettable<TimerTrigger.TimerTriggerCause>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturnsCause
subclass used to determine username.boolean
setJenkinsUserBuildVars
(TimerTrigger.TimerTriggerCause cause, Map<String, String> variables) Adds username build variables extracted from build cause to map of build variables.
-
Field Details
-
TIMER_TRIGGER_DUMMY_USER_NAME
- See Also:
-
TIMER_TRIGGER_DUMMY_USER_ID
- See Also:
-
-
Constructor Details
-
TimerTriggerCauseDeterminant
public TimerTriggerCauseDeterminant()
-
-
Method Details
-
setJenkinsUserBuildVars
public boolean setJenkinsUserBuildVars(TimerTrigger.TimerTriggerCause 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<TimerTrigger.TimerTriggerCause>
- 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<TimerTrigger.TimerTriggerCause>
- Returns:
- class used to determine username.
-