public class ClangScanBuildPublisher
extends hudson.tasks.Recorder
hudson.tasks.Publisher.DescriptorExtensionListImpl
Modifier and Type | Field and Description |
---|---|
static ClangScanBuildPublisherDescriptor |
DESCRIPTOR |
Constructor and Description |
---|
ClangScanBuildPublisher(boolean markBuildUnstableWhenThresholdIsExceeded,
int bugThreshold,
java.lang.String clangexcludedpaths,
java.lang.String reportFolderName) |
Modifier and Type | Method and Description |
---|---|
int |
getBugThreshold() |
java.lang.String |
getClangexcludedpaths() |
ClangScanBuildPublisherDescriptor |
getDescriptor() |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project) |
java.lang.String |
getReportFolderName() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
isMarkBuildUnstableWhenThresholdIsExceeded() |
protected java.util.List<hudson.FilePath> |
locateClangBugReports(hudson.FilePath clangOutputFolder)
This locates all the generated HTML bug reports from scan-build and returns them as a list.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
setBugThreshold(int bugThreshold) |
void |
setClangexcludedpaths(java.lang.String clangExcludePaths) |
void |
setReportFolderName(java.lang.String folderName) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
@Extension public static final ClangScanBuildPublisherDescriptor DESCRIPTOR
public ClangScanBuildPublisher(boolean markBuildUnstableWhenThresholdIsExceeded, int bugThreshold, java.lang.String clangexcludedpaths, java.lang.String reportFolderName)
public int getBugThreshold()
public boolean isMarkBuildUnstableWhenThresholdIsExceeded()
public void setBugThreshold(int bugThreshold)
public void setClangexcludedpaths(java.lang.String clangExcludePaths)
public void setReportFolderName(java.lang.String folderName)
public java.lang.String getReportFolderName()
public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
getProjectAction
in interface hudson.tasks.BuildStep
getProjectAction
in class hudson.tasks.BuildStepCompatibilityLayer
public ClangScanBuildPublisherDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Recorder
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public java.lang.String getClangexcludedpaths()
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws java.lang.InterruptedException, java.io.IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
java.lang.InterruptedException
java.io.IOException
protected java.util.List<hudson.FilePath> locateClangBugReports(hudson.FilePath clangOutputFolder) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException