Package com.indusface.plugins.wasscan
Class ScanApiLaunch
java.lang.Object
com.indusface.plugins.wasscan.ScanApiLaunch
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
monitorAndAbortIfCancelled
(Run<?, ?> build, TaskListener listener) boolean
startScan
(TaskListener listener, String accessKey, Run<?, ?> run) Starts the scan process using the provided access key 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 InterruptedExceptionStarts 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 loggingaccessKey
- the access key required for the scanrun
- 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
-