Class ScanApiLaunch

java.lang.Object
com.indusface.plugins.wasscan.ScanApiLaunch

public class ScanApiLaunch extends Object
The ScanApiLaunch class is responsible for initiating and monitoring a scan process through an external API. It handles the communication with the API, processes the responses, and updates the Jenkins build status based on the scan results.
  • Constructor Details

    • ScanApiLaunch

      public ScanApiLaunch()
  • Method Details

    • startScan

      public boolean startScan(TaskListener listener, String accessKey, Run<?,?> run) throws InterruptedException
      Starts the scan process using the provided access key and updates the Jenkins build status based on the scan results.
      Parameters:
      listener - the task listener for logging
      accessKey - the access key required for the scan
      run - the Jenkins build run
      Returns:
      true if the build failed, false otherwise
      Throws:
      InterruptedException
    • monitorAndAbortIfCancelled

      public static boolean monitorAndAbortIfCancelled(Run<?,?> build, TaskListener listener) throws InterruptedException
      Throws:
      InterruptedException