Package com.veracode.jenkins.plugin
Class VeracodeNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- com.veracode.jenkins.plugin.VeracodeNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class VeracodeNotifier extends Notifier
The VeracodeNotifier 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
VeracodeNotifier.VeracodeDescriptor
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 VeracodeNotifier(String appname, boolean createprofile, String teams, String criticality, String sandboxname, boolean createsandbox, String version, String filenamepattern, String replacementpattern, String uploadincludespattern, String uploadexcludespattern, String scanincludespattern, String scanexcludespattern, boolean waitForScan, String timeout, String deleteIncompleteScan, CredentialsBlock credentials)
Constructor for VeracodeNotifier.
-
Method Summary
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform
-
-
-
-
Constructor Detail
-
VeracodeNotifier
@DataBoundConstructor public VeracodeNotifier(String appname, boolean createprofile, String teams, String criticality, String sandboxname, boolean createsandbox, String version, String filenamepattern, String replacementpattern, String uploadincludespattern, String uploadexcludespattern, String scanincludespattern, String scanexcludespattern, boolean waitForScan, String timeout, String deleteIncompleteScan, CredentialsBlock credentials)
Constructor for VeracodeNotifier.Called by Jenkins with data supplied in the "Job Configuration" page.
- Parameters:
appname
- aString
object.createprofile
- a boolean.teams
- aString
object.criticality
- aString
object.sandboxname
- aString
object.createsandbox
- a boolean.version
- aString
object.filenamepattern
- aString
object.replacementpattern
- aString
object.uploadincludespattern
- aString
object.uploadexcludespattern
- aString
object.scanincludespattern
- aString
object.scanexcludespattern
- aString
object.waitForScan
- a boolean.timeout
- aString
object.deleteIncompleteScan
- a boolean.credentials
- aCredentialsBlock
object.
-
-
Method Detail
-
getAppname
public String getAppname()
-
getCreateprofile
public boolean getCreateprofile()
-
getTeams
public String getTeams()
-
getCriticality
public String getCriticality()
-
getSandboxname
public String getSandboxname()
-
getCreatesandbox
public boolean getCreatesandbox()
-
getVersion
public String getVersion()
-
getUploadincludespattern
public String getUploadincludespattern()
-
getUploadexcludespattern
public String getUploadexcludespattern()
-
getScanincludespattern
public String getScanincludespattern()
-
getScanexcludespattern
public String getScanexcludespattern()
-
getFilenamepattern
public String getFilenamepattern()
-
getReplacementpattern
public String getReplacementpattern()
-
getCredentials
public CredentialsBlock getCredentials()
-
getWaitForScan
public boolean getWaitForScan()
-
getTimeout
public String getTimeout()
-
getDeleteIncompleteScan
public String getDeleteIncompleteScan()
-
getVid
public String getVid()
-
getVkey
public String getVkey()
-
getDescriptor
public VeracodeNotifier.VeracodeDescriptor getDescriptor()
Returns theVeracodeDescriptor
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
-
-