public class ClangScanBuildAction
extends java.lang.Object
implements hudson.model.Action, org.kohsuke.stapler.StaplerProxy, hudson.model.ModelObject
Modifier and Type | Field and Description |
---|---|
hudson.model.AbstractBuild<?,?> |
build |
static java.lang.String |
BUILD_ACTION_URL_NAME |
Constructor and Description |
---|
ClangScanBuildAction(hudson.model.AbstractBuild<?,?> build,
int bugCount,
boolean markBuildUnstable,
int bugThreshold,
hudson.FilePath bugSummaryXML,
java.lang.String outputFolderName) |
Modifier and Type | Method and Description |
---|---|
boolean |
buildFailedDueToExceededThreshold() |
void |
doBrowse(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
This method is used to serve up report HTML files from the hidden build folder.
|
int |
getBugCount() |
int |
getBugThreshhold() |
java.lang.String |
getDisplayName()
Title of link display on job results screen.
|
java.lang.String |
getIconFileName()
Indicates which icon should be displayed next to the link
|
java.lang.Object |
getTarget()
This method needs to return the object that is responsible
for handling web requests.
|
java.lang.String |
getUrlName()
This object will be reference if a request comes into the following url:
http://[jenkins]/job/[job name]/[job number]/clangBugReport
|
ClangScanBuildBugSummary |
loadBugSummary()
The only thing stored in the actual builds in the bugCount and bugThreshold.
|
public static final java.lang.String BUILD_ACTION_URL_NAME
public hudson.model.AbstractBuild<?,?> build
public ClangScanBuildAction(hudson.model.AbstractBuild<?,?> build, int bugCount, boolean markBuildUnstable, int bugThreshold, hudson.FilePath bugSummaryXML, java.lang.String outputFolderName)
public boolean buildFailedDueToExceededThreshold()
public int getBugThreshhold()
public ClangScanBuildBugSummary loadBugSummary()
public int getBugCount()
public java.lang.String getIconFileName()
getIconFileName
in interface hudson.model.Action
public java.lang.String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public java.lang.String getUrlName()
getUrlName
in interface hudson.model.Action
public java.lang.Object getTarget()
getTarget
in interface org.kohsuke.stapler.StaplerProxy
public void doBrowse(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws java.io.IOException
java.io.IOException