Class PipelineChartAction

  • All Implemented Interfaces:
    hudson.model.Action, hudson.model.ModelObject

    public class PipelineChartAction
    extends Object
    implements hudson.model.Action
    • Method Detail

      • getInstance

        public static PipelineChartAction getInstance​(hudson.model.Job<?,​?> job)
      • isCore

        public boolean isCore()
      • isJava

        public boolean isJava()
      • isCplusplus

        public boolean isCplusplus()
      • isCsharp

        public boolean isCsharp()
      • isPython

        public boolean isPython()
      • doSubmit

        public void doSubmit​(org.kohsuke.stapler.StaplerRequest req,
                             org.kohsuke.stapler.StaplerResponse rsp)
                      throws IOException,
                             javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • doGetPlot

        public void doGetPlot​(org.kohsuke.stapler.StaplerRequest req,
                              org.kohsuke.stapler.StaplerResponse rsp)
        Method that generates the chart and adds it to the response object to allow jenkins to display it. It is called in SonargraphChartAction/index.jelly in the src attribute of an img tag.
      • getJob

        public hudson.model.Job<?,​?> getJob()
      • getIconFileName

        public String getIconFileName()
        Icon that will appear next to the link defined by this action.
        Specified by:
        getIconFileName in interface hudson.model.Action
      • getDisplayName

        public String getDisplayName()
        Name of the link for this action
        Specified by:
        getDisplayName in interface hudson.model.Action
        Specified by:
        getDisplayName in interface hudson.model.ModelObject
      • getUrlName

        public String getUrlName()
        Last segment of the url that will lead to this action. e.g https://localhost:8080/jobName/sonargraph
        Specified by:
        getUrlName in interface hudson.model.Action