Package jenkins.model

Interface DependencyDeclarer

All Known Subinterfaces:
DependecyDeclarer
All Known Implementing Classes:
BuildTrigger, Fingerprinter, ReverseBuildTrigger

public interface DependencyDeclarer
Marker interface for project-associated objects that can participate in the dependency graph computation process.

Publishers, Builders, BuildWrappers, and Triggers (or whatever DescribableList.buildDependencyGraph(hudson.model.AbstractProject, hudson.model.DependencyGraph) is called on, by AbstractProject.buildDependencyGraph(hudson.model.DependencyGraph)) can implement this interface to add additional edges to the dependency graph.

Since:
1.501
Author:
Nicolas Lalevee, Martin Ficker, Kohsuke Kawaguchi
  • Method Details

    • buildDependencyGraph

      void buildDependencyGraph(AbstractProject owner, DependencyGraph graph)
      Parameters:
      owner - The project that owns the publishers, builders, etc. This information is conceptually redundant, as those objects are only configured against the single owner, but this information is nevertheless passed in since often owner information is not recorded. Never null.
      graph - The dependency graph being built. Never null.