Class PipelineChartAction
java.lang.Object
com.hello2morrow.sonargraph.integration.jenkins.controller.PipelineChartAction
- All Implemented Interfaces:
Action,ModelObject
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoGetPlot(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Method that generates the chart and adds it to the response object to allow jenkins to display it.voiddoSubmit(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Name of the link for this actionIcon that will appear next to the link defined by this action.static PipelineChartActiongetInstance(Job<?, ?> job) Job<?,?> getJob()Last segment of the url that will lead to this action.booleanisCore()booleanbooleanisCsharp()booleanisJava()booleanisPython()
-
Method Details
-
getInstance
-
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.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
getChartsForMetrics
-
doGetPlot
public void doGetPlot(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 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
-
getIconFileName
Icon that will appear next to the link defined by this action.- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
Name of the link for this action- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
Last segment of the url that will lead to this action. e.g https://localhost:8080/jobName/sonargraph- Specified by:
getUrlNamein interfaceAction
-