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
Notifierclass.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicRescanNotifier.DynamicScanDescriptorContains 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 StringgetAppname()DynamicRescanNotifier.DynamicScanDescriptorgetDescriptor()Returns theDynamicRescanNotifier.DynamicScanDescriptorobject associated with this instance.booleangetDvrenabled()BuildStepMonitorgetRequiredMonitorService()Returns an object that represents the scope of the synchronization monitor expected by the plugin.booleanperform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)Called by Jenkins after a build for a job specified to use the plugin is performed.booleanprebuild(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.DynamicScanDescriptorobject associated with this instance.- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin 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:
prebuildin interfaceBuildStep- Overrides:
prebuildin 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:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
IOExceptionInterruptedException
-
-