jenkins.plugins.clangscanbuild.publisher
Class ClangScanBuildPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class ClangScanBuildPublisher
extends hudson.tasks.Recorder


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static ClangScanBuildPublisherDescriptor DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
ClangScanBuildPublisher(boolean markBuildUnstableWhenThresholdIsExceeded, int bugThreshold)
           
 
Method Summary
 int getBugThreshold()
           
 ClangScanBuildPublisherDescriptor getDescriptor()
           
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 boolean isMarkBuildUnstableWhenThresholdIsExceeded()
           
protected  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)
           
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectActions, prebuild
 

Field Detail

DESCRIPTOR

@Extension
public static final ClangScanBuildPublisherDescriptor DESCRIPTOR
Constructor Detail

ClangScanBuildPublisher

public ClangScanBuildPublisher(boolean markBuildUnstableWhenThresholdIsExceeded,
                               int bugThreshold)
Method Detail

getBugThreshold

public int getBugThreshold()

isMarkBuildUnstableWhenThresholdIsExceeded

public boolean isMarkBuildUnstableWhenThresholdIsExceeded()

setBugThreshold

public void setBugThreshold(int bugThreshold)

getProjectAction

public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer

getDescriptor

public ClangScanBuildPublisherDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Recorder

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException

locateClangBugReports

protected List<hudson.FilePath> locateClangBugReports(hudson.FilePath clangOutputFolder)
                                               throws IOException,
                                                      InterruptedException
This locates all the generated HTML bug reports from scan-build and returns them as a list.

Throws:
IOException
InterruptedException


Copyright © 2004-2012. All Rights Reserved.