Package io.jenkins.plugins.finitestate
Class FiniteStateExecutionFramework
java.lang.Object
io.jenkins.plugins.finitestate.FiniteStateExecutionFramework
Execution framework for Finite State analysis operations.
Provides common logic for executing different types of analysis.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanexecuteAnalysis(BaseFiniteStateRecorder recorder, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Backward-compatible shim for freestyle builds usingAbstractBuildAPI.static booleanexecuteAnalysis(BaseFiniteStateRecorder recorder, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Execute a Finite State analysis with common error handling and logging.
-
Method Details
-
executeAnalysis
public static boolean executeAnalysis(BaseFiniteStateRecorder recorder, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOExceptionExecute a Finite State analysis with common error handling and logging.- Parameters:
recorder- Recorder that encapsulates analysis configuration and helpersrun- Jenkins run/build context used for environment and loggingworkspace- Workspace directory where files and the CLT are accessedlauncher- Jenkins launcher used to execute external processeslistener- Build/task listener for console logging- Returns:
- true when the analysis is triggered successfully (exit code 0 or 1), false on failures
- Throws:
InterruptedException- if execution is interruptedIOException- if CLT download or file I/O fails
-
executeAnalysis
public static boolean executeAnalysis(BaseFiniteStateRecorder recorder, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOExceptionBackward-compatible shim for freestyle builds usingAbstractBuildAPI.- Parameters:
recorder- Recorder that encapsulates analysis configuration and helpersbuild- Freestyle build contextlauncher- Jenkins launcher used to execute external processeslistener- Build listener for console logging- Returns:
- result of delegated execution
- Throws:
InterruptedException- if execution is interruptedIOException- if CLT download or file I/O fails
-