org.jenkinsci.plugins.DependencyCheck
Class DependencyCheckAnnotationsAggregator

java.lang.Object
  extended by hudson.matrix.MatrixAggregator
      extended by hudson.plugins.analysis.core.AnnotationsAggregator
          extended by org.jenkinsci.plugins.DependencyCheck.DependencyCheckAnnotationsAggregator
All Implemented Interfaces:
hudson.ExtensionPoint

public class DependencyCheckAnnotationsAggregator
extends hudson.plugins.analysis.core.AnnotationsAggregator

Aggregates DependencyCheckResultActions of MatrixRuns into MatrixBuild.

Author:
Steve Springett (steve.springett@owasp.org), based on PmdAnnotationsAggregator by Ulli Hafner

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.matrix.MatrixAggregator
build, launcher, listener
 
Constructor Summary
DependencyCheckAnnotationsAggregator(hudson.matrix.MatrixBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener, hudson.plugins.analysis.core.HealthDescriptor healthDescriptor, String defaultEncoding, boolean usePreviousBuildAsReference, boolean useStableBuildAsReference)
          Creates a new instance of DependencyCheckAnnotationsAggregator.
 
Method Summary
protected  hudson.model.Action createAction(hudson.plugins.analysis.core.HealthDescriptor healthDescriptor, String defaultEncoding, hudson.plugins.analysis.core.ParserResult aggregatedResult)
           
protected  DependencyCheckResult getResult(hudson.matrix.MatrixRun run)
           
protected  boolean hasResult(hudson.matrix.MatrixRun run)
           
 
Methods inherited from class hudson.plugins.analysis.core.AnnotationsAggregator
endBuild, endRun, useOnlyStableBuildsAsReference, usePreviousBuildAsReference
 
Methods inherited from class hudson.matrix.MatrixAggregator
startBuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyCheckAnnotationsAggregator

public DependencyCheckAnnotationsAggregator(hudson.matrix.MatrixBuild build,
                                            hudson.Launcher launcher,
                                            hudson.model.BuildListener listener,
                                            hudson.plugins.analysis.core.HealthDescriptor healthDescriptor,
                                            String defaultEncoding,
                                            boolean usePreviousBuildAsReference,
                                            boolean useStableBuildAsReference)
Creates a new instance of DependencyCheckAnnotationsAggregator.

Parameters:
build - the matrix build
launcher - the launcher
listener - the build listener
healthDescriptor - health descriptor
defaultEncoding - the default encoding to be used when reading and parsing files
usePreviousBuildAsReference - determines whether the previous build should be used as the reference build
useStableBuildAsReference - determines whether only stable builds should be used as reference builds or not
Method Detail

createAction

protected hudson.model.Action createAction(hudson.plugins.analysis.core.HealthDescriptor healthDescriptor,
                                           String defaultEncoding,
                                           hudson.plugins.analysis.core.ParserResult aggregatedResult)
Specified by:
createAction in class hudson.plugins.analysis.core.AnnotationsAggregator

hasResult

protected boolean hasResult(hudson.matrix.MatrixRun run)
Overrides:
hasResult in class hudson.plugins.analysis.core.AnnotationsAggregator

getResult

protected DependencyCheckResult getResult(hudson.matrix.MatrixRun run)
Specified by:
getResult in class hudson.plugins.analysis.core.AnnotationsAggregator


Copyright © 2012-2015 OWASP. All Rights Reserved.