|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
hudson.plugins.violations.ViolationsBuildAction
public class ViolationsBuildAction
This is the build action for the violations. It has the violation report for the build and is able to graph the violations. The rendering of the build is done by the associated summary.jelly script.
| Constructor Summary | |
|---|---|
ViolationsBuildAction(hudson.model.Build owner,
ViolationsReport report)
Construct a build action. |
|
| Method Summary | |
|---|---|
void |
doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
This corresponds to the url . |
hudson.model.Build |
getBuild()
Get the build that owns this action. |
hudson.model.HealthReport |
getBuildHealth()
Get the build report. |
java.lang.String |
getDisplayName()
The display name for the url to be displayed on the build page right hand side. |
java.lang.String |
getIconFileName()
Get the icon to display. |
ViolationsBuildAction |
getPreviousResult()
get rhe previous valid build result. |
ViolationsReport |
getReport()
Get the report. |
java.lang.String |
getSearchUrl()
Get the search url. |
java.lang.Object |
getTarget()
The object to use then the URL is pressed This handles the url's from "${buildpage}/violations/" except for any overridded by do methods in this class (in this instance doGraph). |
java.lang.String |
getUrlName()
The url to get to the "target" object. |
static ViolationsBuildAction |
getViolationsAction(hudson.model.Build start)
Get the violations build action from a build. |
| Methods inherited from class hudson.model.Actionable |
|---|
addAction, getAction, getAction, getActions, getActions, getDynamic |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViolationsBuildAction(hudson.model.Build owner,
ViolationsReport report)
owner - the build that has created this action.report - the report for this build.| Method Detail |
|---|
public hudson.model.Build getBuild()
public java.lang.Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic java.lang.String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic java.lang.String getUrlName()
getUrlName in interface hudson.model.Actionpublic java.lang.String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItempublic ViolationsReport getReport()
public ViolationsBuildAction getPreviousResult()
public hudson.model.HealthReport getBuildHealth()
getBuildHealth in interface hudson.model.HealthReportingAction
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
req - the request parameters.rsp - the response.
java.io.IOException - if there is an error writing the graphpublic static ViolationsBuildAction getViolationsAction(hudson.model.Build start)
start - the build to start looking in.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||