Package hudson.tasks

Class BuildTrigger

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, DependencyDeclarer

public class BuildTrigger extends Recorder implements DependencyDeclarer
Triggers builds of other projects.

Despite what the name suggests, this class doesn't actually trigger other jobs as a part of perform(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener) method. Its main job is to simply augment DependencyGraph. Jobs are responsible for triggering downstream jobs on its own, because dependencies may come from other sources.

This class, however, does provide the execute(AbstractBuild, BuildListener, BuildTrigger) method as a convenience method to invoke downstream builds.

Its counterpart is ReverseBuildTrigger.

Kohsuke Kawaguchi