Package io.jenkins.plugins.finitestate
Class CLTManager
java.lang.Object
io.jenkins.plugins.finitestate.CLTManager
Utility class for managing the Finite State CLT (Command Line Tool) download and caching.
This class provides centralized logic for downloading, caching, and validating the CLT JAR file.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilePathgetOrDownloadCLT(String cltUrl, String apiToken, String subdomain, FilePath workspace, TaskListener listener) Get or download the CLT jar file with proper caching and validation.
-
Method Details
-
getOrDownloadCLT
public static FilePath getOrDownloadCLT(String cltUrl, String apiToken, String subdomain, FilePath workspace, TaskListener listener) throws IOException, InterruptedException Get or download the CLT jar file with proper caching and validation.- Parameters:
cltUrl- The URL to download the CLT fromapiToken- The API token for authenticationsubdomain- The subdomain for filename generationlistener- The build listener for logging- Returns:
- The path to the CLT JAR file
- Throws:
IOException- if download fails or file is invalidInterruptedException
-