Package hudson.model

Class DependencyGraph.Dependency

  • Enclosing class:
    DependencyGraph

    public static class DependencyGraph.Dependency
    extends Object
    Represents an edge in the dependency graph.
    Since:
    1.341
    • Method Detail

      • shouldTriggerBuild

        public boolean shouldTriggerBuild​(AbstractBuild build,
                                          TaskListener listener,
                                          List<Action> actions)
        Decide whether build should be triggered and provide any Actions for the build. Default implementation always returns true (for backward compatibility), and adds no Actions. Subclasses may override to control how/if the build is triggered.

        The authentication in effect (Jenkins.getAuthentication2()) will be that of the upstream build. An implementation is expected to perform any relevant access control checks: that an upstream project can both see and build a downstream project, or that a downstream project can see an upstream project.

        Parameters:
        build - Build of upstream project that just completed
        listener - For any error/log output
        actions - Add Actions for the triggered build to this list; never null
        Returns:
        True to trigger a build of the downstream project
      • pointsItself

        public boolean pointsItself()
        Does this method point to itself?
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object