Class DifferentiatingAction
- java.lang.Object
-
- hudson.model.InvisibleAction
-
- hudson.plugins.parameterizedtrigger.DifferentiatingAction
-
- All Implemented Interfaces:
Action
,ModelObject
,Queue.QueueAction
public class DifferentiatingAction extends InvisibleAction implements Queue.QueueAction
Force unique scheduling of the child job.Queue in Jenkins try to merge together two "identical" tasks into one. For example, if you try to trigger the same project twice while it is still in the queue, you'll only see one getting invoked.
This is most likely harmful in the context of the parameterized trigger when used in the subroutine semantics, where you expect what you triggered to fire regardless of other things going on. This hidden "hack" parameter prevents the submitted task from getting merged with others.
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description DifferentiatingAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldSchedule(List<Action> actions)
-
Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Method Detail
-
shouldSchedule
public boolean shouldSchedule(List<Action> actions)
- Specified by:
shouldSchedule
in interfaceQueue.QueueAction
-
-