Class JobAction

java.lang.Object
io.jenkins.plugins.reporter.JobAction
All Implemented Interfaces:
Action, ModelObject, io.jenkins.plugins.echarts.AsyncConfigurableTrendChart

public class JobAction extends Object implements io.jenkins.plugins.echarts.AsyncConfigurableTrendChart, Action
  • Field Details

  • Constructor Details

    • JobAction

      public JobAction(Job<?,?> owner, String name, Report report)
      Creates a new instance of JobAction.
      Parameters:
      owner - the job that owns this action
      name - the human-readable name
  • Method Details

    • getIconFileName

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

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

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • createBuildHistory

      public History createBuildHistory()
      Returns the build history for this job.
      Returns:
      the history
    • getReport

      public Report getReport()
    • getTrendId

      @JavaScriptMethod public String getTrendId()
    • getOwner

      public Job<?,?> getOwner()
      Returns the job this action belongs to.
      Returns:
      the job
    • getConfigurableBuildTrendModel

      @JavaScriptMethod public String getConfigurableBuildTrendModel(String configuration)
      Specified by:
      getConfigurableBuildTrendModel in interface io.jenkins.plugins.echarts.AsyncConfigurableTrendChart
    • isTrendVisible

      public boolean isTrendVisible()
      Specified by:
      isTrendVisible in interface io.jenkins.plugins.echarts.AsyncConfigurableTrendChart