Class WasPostBuildAction

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep

public class WasPostBuildAction extends Notifier implements 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.
  • Constructor Details

    • WasPostBuildAction

      @DataBoundConstructor public WasPostBuildAction(String accessKey, String buildName)
      Constructor to initialize the WasPostBuildAction with the specified access key and build name.
      Parameters:
      accessKey - the access key required for the post-build action
      buildName - the name of the build
  • Method Details

    • getAccessKey

      public String getAccessKey()
      Gets the access key.
      Returns:
      the access key
    • setAccessKey

      @DataBoundSetter public void setAccessKey(String accessKey)
      Sets the access key.
      Parameters:
      accessKey - the new access key
    • getBuildName

      public String getBuildName()
      Gets the build name.
      Returns:
      the build name
    • setBuildName

      @DataBoundSetter public void setBuildName(String buildName)
      Sets the build name.
      Parameters:
      buildName - the new build name
    • perform

      public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
      Performs the post-build action. If the build was successful, it executes additional tasks.
      Specified by:
      perform in interface SimpleBuildStep
      Parameters:
      run - the build run
      workspace - the workspace
      launcher - the launcher
      listener - the task listener
      Throws:
      InterruptedException - if the build is interrupted
      IOException - if an I/O error occurs
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
      Specifies the required monitor service for this build step.
      Specified by:
      getRequiredMonitorService in interface BuildStep
      Returns:
      the build step monitor