Package com.veracode.jenkins.plugin
Class DynamicRescanNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- com.veracode.jenkins.plugin.DynamicRescanNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class DynamicRescanNotifier extends Notifier
The DynamicRescanNotifier class contains the code that is executed after a job that is configured to use the Veracode plugin is built and provides getter methods for the form fields defined in config.jelly.This class extends the
Notifier
class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DynamicRescanNotifier.DynamicScanDescriptor
Contains the code that is executed after a user submits the "Configure System" form and provides getter methods for the form fields defined in global.jelly.-
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 DynamicRescanNotifier(String appname, boolean dvrenabled)
Constructor for DynamicRescanNotifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAppname()
DynamicRescanNotifier.DynamicScanDescriptor
getDescriptor()
Returns theDynamicRescanNotifier.DynamicScanDescriptor
object associated with this instance.boolean
getDvrenabled()
BuildStepMonitor
getRequiredMonitorService()
Returns an object that represents the scope of the synchronization monitor expected by the plugin.boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
Called by Jenkins after a build for a job specified to use the plugin is performed.boolean
prebuild(AbstractBuild<?,?> build, BuildListener listener)
In this overridden method we are taking care of copying the wrapper to remote location and making the build ready for scan-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform
-
-
-
-
Method Detail
-
getAppname
public String getAppname()
-
getDvrenabled
public boolean getDvrenabled()
-
getDescriptor
public DynamicRescanNotifier.DynamicScanDescriptor getDescriptor()
Returns theDynamicRescanNotifier.DynamicScanDescriptor
object associated with this instance.- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
Returns an object that represents the scope of the synchronization monitor expected by the plugin.
-
prebuild
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
In this overridden method we are taking care of copying the wrapper to remote location and making the build ready for scan- Specified by:
prebuild
in interfaceBuildStep
- Overrides:
prebuild
in classBuildStepCompatibilityLayer
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
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
- Throws:
IOException
InterruptedException
-
-