Class CleanUpTask

java.lang.Object
com.piketec.jenkins.plugins.tpt.CleanUpTask

public class CleanUpTask extends Object
Task to execute after executing a builder. Usually done in a finally block
Author:
jkuhnert, Synopsys Inc.
  • Constructor Details

    • CleanUpTask

      public CleanUpTask(Run<?,?> distributingJobRun, CleanUpCallable cleanUpCallable, Launcher launcher)
      Creates and enqueues an clean up taks that will be executed when calling cleanUp(Run, TptLogger)
      Parameters:
      distributingJobRun - abstract build as id
      cleanUpCallable - the callable to execute for clean up
      launcher - the launcher
  • Method Details

    • cleanUp

      public static boolean cleanUp(Run<?,?> distributingJobRun, TptLogger logger) throws InterruptedException
      removes and executes a list of CleanUpTask from the registry
      Parameters:
      distributingJobRun - to identify to which registry the task is going to be removed
      logger - for dumping error messages
      Returns:
      true if it was possible to execute the tasks.
      Throws:
      InterruptedException - If thread was interrupted