Class TriggeredRuns

java.lang.Object
se.diabol.jenkins.pipeline.flow.DownstreamRuns
se.diabol.jenkins.pipeline.freestyle.TriggeredRuns
All Implemented Interfaces:
ExtensionPoint

@Extension public class TriggeredRuns extends DownstreamRuns
The Pipeline runs a build of a chained job triggered. The core build trigger ("Build other projects") starts Pipeline jobs without listing them in the dependency graph, and a Pipeline job's own "Build after other projects are built" trigger is not in it either, so a chain of jobs used to stop where a Pipeline job began. The runs are found by their upstream cause among the recent runs of those jobs; one not started yet is reported without a number while it waits in the queue for that build.
  • Constructor Details

    • TriggeredRuns

      public TriggeredRuns()
  • Method Details

    • startedBy

      public List<DownstreamRuns.Started> startedBy(Run<?,?> run)
      Description copied from class: DownstreamRuns
      The runs the given run started, in the order it started them.
      Specified by:
      startedBy in class DownstreamRuns
    • addTriggered

      public static void addTriggered(List<Job<?,?>> into, Set<String> seen, Job<?,?> job)
      Adds the job unless it is a project, which the chain of jobs shows already, or was added before.
    • runsOf

      public static List<DownstreamRuns.Started> runsOf(Job<?,?> job, Run<?,?> upstream)
      The runs of the job with an upstream cause pointing at the build, newest first, or failing that one entry without a number when the job waits in the queue for that build.