Package com.indusface.plugins.wasscan
Class WasPostBuildAction
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
com.indusface.plugins.wasscan.WasPostBuildAction
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
WasPostBuildAction is a Jenkins post-build action that performs specific tasks after a build is completed.
It extends the Notifier class and implements the SimpleBuildStep interface.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Descriptor for the WasPostBuildAction.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
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorsConstructorDescriptionWasPostBuildAction
(String accessKey, String buildName) Constructor to initialize the WasPostBuildAction with the specified access key and build name. -
Method Summary
Modifier and TypeMethodDescriptionGets the access key.Gets the build name.Specifies the required monitor service for this build step.void
perform
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Performs the post-build action.void
setAccessKey
(String accessKey) Sets the access key.void
setBuildName
(String buildName) Sets the build name.Methods inherited from class hudson.tasks.Notifier
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
WasPostBuildAction
Constructor to initialize the WasPostBuildAction with the specified access key and build name.- Parameters:
accessKey
- the access key required for the post-build actionbuildName
- the name of the build
-
-
Method Details
-
getAccessKey
Gets the access key.- Returns:
- the access key
-
setAccessKey
Sets the access key.- Parameters:
accessKey
- the new access key
-
getBuildName
Gets the build name.- Returns:
- the build name
-
setBuildName
Sets the build name.- Parameters:
buildName
- the new build name
-
perform
public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOExceptionPerforms the post-build action. If the build was successful, it executes additional tasks.- Specified by:
perform
in interfaceSimpleBuildStep
- Parameters:
run
- the build runworkspace
- the workspacelauncher
- the launcherlistener
- the task listener- Throws:
InterruptedException
- if the build is interruptedIOException
- if an I/O error occurs
-
getRequiredMonitorService
Specifies the required monitor service for this build step.- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Returns:
- the build step monitor
-