Class PipelineChartAction
- java.lang.Object
-
- com.hello2morrow.sonargraph.integration.jenkins.controller.PipelineChartAction
-
- All Implemented Interfaces:
hudson.model.Action
,hudson.model.ModelObject
public class PipelineChartAction extends Object implements hudson.model.Action
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
doSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Collection<String>
getChartsForMetrics()
String
getDisplayName()
Name of the link for this actionString
getIconFileName()
Icon that will appear next to the link defined by this action.static PipelineChartAction
getInstance(hudson.model.Job<?,?> job)
hudson.model.Job<?,?>
getJob()
String
getUrlName()
Last segment of the url that will lead to this action. e.g https://localhost:8080/jobName/sonargraphboolean
isCore()
boolean
isCplusplus()
boolean
isCsharp()
boolean
isJava()
boolean
isPython()
-
-
-
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
-
getChartsForMetrics
public Collection<String> getChartsForMetrics()
-
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 interfacehudson.model.Action
-
getDisplayName
public String getDisplayName()
Name of the link for this action- Specified by:
getDisplayName
in interfacehudson.model.Action
- Specified by:
getDisplayName
in interfacehudson.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 interfacehudson.model.Action
-
-