Package io.jenkins.plugins.tacotruck
Class TacotruckCLIHelper
java.lang.Object
io.jenkins.plugins.tacotruck.TacotruckCLIHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static String[]buildSubmitCommand(String provider, String resultsPath, String project, String apiToken, String handle, String runName, String baseUrl, String npxPath, String source) protected static CLIResultexecuteCLI(String[] command, Launcher launcher, TaskListener listener, FilePath workspace) protected static CLIResultexecuteCLI(String[] command, Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) protected static StringfindNpxPath(Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) protected static StringgetApiToken(String credentialsId) protected static StringgetTacotruckCliVersion(Launcher launcher, TaskListener listener, FilePath workspace) protected static StringgetTacotruckCliVersion(Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) protected static booleanisTacotruckCliAvailable(Launcher launcher, TaskListener listener, FilePath workspace) protected static booleanisTacotruckCliAvailable(Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) protected static CLIResultsubmitResults(String provider, String resultsPath, String project, String apiToken, String handle, String runName, String baseUrl, String source, Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) protected static CLIResultsubmitResultsWithCredentials(String provider, String resultsPath, String project, String credentialsId, String handle, String runName, String baseUrl, String source, Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars)
-
Constructor Details
-
TacotruckCLIHelper
public TacotruckCLIHelper()
-
-
Method Details
-
executeCLI
protected static CLIResult executeCLI(String[] command, Launcher launcher, TaskListener listener, FilePath workspace) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
executeCLI
protected static CLIResult executeCLI(String[] command, Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
isTacotruckCliAvailable
protected static boolean isTacotruckCliAvailable(Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
isTacotruckCliAvailable
protected static boolean isTacotruckCliAvailable(Launcher launcher, TaskListener listener, FilePath workspace) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
findNpxPath
protected static String findNpxPath(Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getTacotruckCliVersion
protected static String getTacotruckCliVersion(Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getTacotruckCliVersion
protected static String getTacotruckCliVersion(Launcher launcher, TaskListener listener, FilePath workspace) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
buildSubmitCommand
-
submitResults
protected static CLIResult submitResults(String provider, String resultsPath, String project, String apiToken, String handle, String runName, String baseUrl, String source, Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getApiToken
-
submitResultsWithCredentials
protected static CLIResult submitResultsWithCredentials(String provider, String resultsPath, String project, String credentialsId, String handle, String runName, String baseUrl, String source, Launcher launcher, TaskListener listener, FilePath workspace, EnvVars envVars) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-