Package org.jvnet.hudson.reactor
Class TaskGraphBuilder
java.lang.Object
org.jvnet.hudson.reactor.TaskBuilder
org.jvnet.hudson.reactor.TaskGraphBuilder
Builder/fluent-API pattern to build up a series of related tasks.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.jvnet.hudson.reactor.TaskBuilder
EMPTY_BUILDER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(String displayName, Executable e) Adds a new work unit and returns its handle, which can then be used to set up dependencies among them.Given milestones will be set as achievements for the next task.discoverTasks
(Reactor reactor) Returns all the tasks that this builder contributes to.Indicates that the task to be added requires the completion of the last added task.notFatal()
Given milestones will be set as pre-requisites for the next task to be added.Methods inherited from class org.jvnet.hudson.reactor.TaskBuilder
fromTasks, union, union
-
Constructor Details
-
TaskGraphBuilder
public TaskGraphBuilder()
-
-
Method Details
-
discoverTasks
Description copied from class:TaskBuilder
Returns all the tasks that this builder contributes to.- Specified by:
discoverTasks
in classTaskBuilder
- Throws:
IOException
-
add
Adds a new work unit and returns its handle, which can then be used to set up dependencies among them.- Parameters:
displayName
- Display name of the task.e
- The actual work.
-
followedBy
Indicates that the task to be added requires the completion of the last added task. -
requires
Given milestones will be set as pre-requisites for the next task to be added. -
attains
Given milestones will be set as achievements for the next task. -
notFatal
-