Package com.veracode.jenkins.plugin
Class DynamicAnalysisResultsNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- com.veracode.jenkins.plugin.DynamicAnalysisResultsNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class DynamicAnalysisResultsNotifier extends Notifier
The DynamicAnalysisResultsNotifier class handles processing for post build action "Review Veracode Dynamic Analysis Results". The UI interface is defined in associated config.jelly.User provides: - how long to wait for analysis results (in minutes) - whether to use global API credentials or define ID/Key specific to the job. This class extends the
Notifier
class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DynamicAnalysisResultsNotifier.DynamicAnalysisResultsDescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description DynamicAnalysisResultsNotifier(int waitForResultsDuration, boolean failBuildForPolicyViolation, CredentialsBlock credentials)
Constructor for DynamicAnalysisResultsNotifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialsBlock
getCredentials()
DynamicAnalysisResultsNotifier.DynamicAnalysisResultsDescriptorImpl
getDescriptor()
Returns theDynamicAnalysisResultsNotifier.DynamicAnalysisResultsDescriptorImpl
object associated with this instance.BuildStepMonitor
getRequiredMonitorService()
Returns an object that represents the scope of the synchronization monitor expected by the plugin.String
getVid()
String
getVkey()
int
getWaitForResultsDuration()
boolean
isFailBuildForPolicyViolation()
boolean
isGlobalCredentialsEnabled()
boolean
perform(AbstractBuild build, Launcher launcher, BuildListener listener)
Called by Jenkins after a build for a job specified to use the plugin is performed.-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Constructor Detail
-
DynamicAnalysisResultsNotifier
@DataBoundConstructor public DynamicAnalysisResultsNotifier(int waitForResultsDuration, boolean failBuildForPolicyViolation, CredentialsBlock credentials)
Constructor for DynamicAnalysisResultsNotifier.- Parameters:
waitForResultsDuration
- a int.failBuildForPolicyViolation
- a boolean.credentials
- aCredentialsBlock
object.
-
-
Method Detail
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
Returns an object that represents the scope of the synchronization monitor expected by the plugin.
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener)
Called by Jenkins after a build for a job specified to use the plugin is performed.- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
-
getDescriptor
public DynamicAnalysisResultsNotifier.DynamicAnalysisResultsDescriptorImpl getDescriptor()
Returns theDynamicAnalysisResultsNotifier.DynamicAnalysisResultsDescriptorImpl
object associated with this instance.- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-
getWaitForResultsDuration
public int getWaitForResultsDuration()
-
isFailBuildForPolicyViolation
public boolean isFailBuildForPolicyViolation()
-
isGlobalCredentialsEnabled
public boolean isGlobalCredentialsEnabled()
-
getCredentials
public CredentialsBlock getCredentials()
-
getVid
public String getVid()
-
getVkey
public String getVkey()
-
-