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 classDescriptor for the WasPostBuildAction.Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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.voidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Performs the post-build action.voidsetAccessKey(String accessKey) Sets the access key.voidsetBuildName(String buildName) Sets the build name.Methods inherited from class hudson.tasks.Notifier
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods 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:
performin 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:
getRequiredMonitorServicein interfaceBuildStep- Returns:
- the build step monitor
-