Class InteractiveOutputBuildAction

java.lang.Object
io.jenkins.plugins.interactiveinput.output.InteractiveOutputBuildAction
All Implemented Interfaces:
Action, ModelObject, RunAction2

public class InteractiveOutputBuildAction extends Object implements RunAction2
Per-build "Interactive Output" surface published by the interactiveOutput step. Holds one or more MetricReports and is stored directly in the build's action list, so it is persisted in build.xml via XStream (no separate store needed — the data is naturally durable and build-scoped).

summary.jelly contributes KPI cards + a table to the build's main page; index.jelly is the dedicated details page reached from the left-sidebar link. Multiple interactiveOutput calls in one build append to the single action instance (see the step), so the build shows one "Interactive Output" link listing every report.

  • Field Details

  • Constructor Details

    • InteractiveOutputBuildAction

      public InteractiveOutputBuildAction()
  • Method Details

    • addReport

      public void addReport(@NonNull MetricReport report)
    • getReports

      @NonNull public List<MetricReport> getReports()
    • isEmpty

      public boolean isEmpty()
    • getRun

      @CheckForNull public Run<?,?> getRun()
    • getObject

      @CheckForNull public Run<?,?> getObject()
      Returns:
      the owning run. Required by core's l:run-subpage (it.object).
    • getIconClassName

      @NonNull public String getIconClassName()
      Returns:
      the theme-aware symbol class for the output surfaces (for <l:icon src=..>).
    • isVisible

      public boolean isVisible()
      Returns:
      whether the build-page summary/detail surfaces should render (feature on and non-empty).
    • isClassicSummaryVisible

      public boolean isClassicSummaryVisible()
      Returns:
      whether the classic summary.jelly row should render. Suppressed under the experimental build page, where the KPI card is instead shown natively by InteractiveOutputRunTab (avoiding a duplicate inside core's "Legacy" card).
    • onAttached

      public void onAttached(Run<?,?> r)
      Specified by:
      onAttached in interface RunAction2
    • onLoad

      public void onLoad(Run<?,?> r)
      Specified by:
      onLoad in interface RunAction2
    • getIconFileName

      @CheckForNull public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      @NonNull public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      @NonNull public String getUrlName()
      Specified by:
      getUrlName in interface Action