Class JobAction

  • All Implemented Interfaces:
    Action, ModelObject, io.jenkins.plugins.echarts.AsyncConfigurableTrendChart

    public class JobAction
    extends Object
    implements io.jenkins.plugins.echarts.AsyncConfigurableTrendChart, Action
    • Constructor Detail

      • 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 Detail

      • 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