Class BlueRunFactory

java.lang.Object
io.jenkins.blueocean.rest.factory.BlueRunFactory
All Implemented Interfaces:
ExtensionPoint

public abstract class BlueRunFactory extends Object implements ExtensionPoint
Factory that gives instance of BlueRun
Author:
Vivek Pandey
  • Constructor Details

    • BlueRunFactory

      public BlueRunFactory()
  • Method Details

    • getRun

      public abstract BlueRun getRun(Run run, Reachable parent, BlueOrganization organization)
      Gives instance of BlueRun that this factory knows about
      Parameters:
      run - Jenkins run model object
      parent - Reachable parent. This is to be used to create this BlueRun instance's Link.
      organization - that the parent is a child of
      Returns:
      null if it doesn't knows about this instance of run object, otherwise instance of BlueRun
    • getRun

      public static BlueRun getRun(Run r, Reachable parent)
      Parameters:
      r - run
      parent - of run
      Returns:
      run or null