public class ExamTaskHelper extends Object
| Constructor and Description |
|---|
ExamTaskHelper()
Constructor for ExamTaskHelper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyArtifactsToTarget(TestConfiguration tc)
copies all reports from the EXAM workspace to the target folder
|
String |
getConfigurationPath(ExamTool examTool)
Calculate and return the path to the configuration folder of EXAM
|
EnvVars |
getEnv()
get the environment variables
|
Node |
getNode()
returns the node the job is actual running
|
String |
getPythonExePath(jenkins.plugins.shiningpanda.tools.PythonInstallation python)
Resolves the given Python to the path on the target node
|
Run |
getRun()
get the Run
|
TaskListener |
getTaskListener()
get the TaskListener
|
ExamTool |
getTool(ExamTool tool)
returns the tool for EXAM on the actual running node
|
void |
handleAdditionalArgs(String javaOpts,
ArgumentListBuilder args,
ExamPluginConfig examPluginConfig)
handle and extend the run arguments
|
void |
handleIOException(long startTime,
IOException e,
ExamTool[] installations)
handles and logs the IOExcetion within the EXAM task
|
FilePath |
prepareWorkspace(Task task,
ArgumentListBuilder args)
prepare some configurations and arguments to run EXAM
|
void |
setEnv(EnvVars env) |
void |
setLauncher(Launcher launcher)
get the TaskListener
|
void |
setRun(Run run)
get the TaskListener
|
void |
setTaskListener(TaskListener taskListener)
get the TaskListener
|
void |
setWorkspace(FilePath workspace)
get the TaskListener
|
public EnvVars getEnv()
public void setEnv(EnvVars env)
public Run getRun()
public void setRun(Run run) throws IOException, InterruptedException
run - RunInterruptedException - InterruptedExceptionIOException - IOExceptionpublic TaskListener getTaskListener()
public void setTaskListener(TaskListener taskListener) throws IOException, InterruptedException
taskListener - TaskListenerInterruptedException - InterruptedExceptionIOException - IOExceptionpublic void setLauncher(Launcher launcher)
launcher - Launcherpublic void setWorkspace(FilePath workspace)
workspace - FilePathpublic String getPythonExePath(jenkins.plugins.shiningpanda.tools.PythonInstallation python) throws IOException, InterruptedException
python - PythonInstallationIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void handleAdditionalArgs(String javaOpts, ArgumentListBuilder args, ExamPluginConfig examPluginConfig) throws AbortException
args - run argumentsexamPluginConfig - ExamPluginConfigjavaOpts - additional java optionsAbortException - AbortExceptionpublic void copyArtifactsToTarget(TestConfiguration tc) throws IOException, InterruptedException
tc - TestConfigurationIOException - IOExceptionInterruptedException - InterruptedExceptionpublic String getConfigurationPath(ExamTool examTool) throws IOException, InterruptedException
examTool - ExamToolIOException - IOExceptionInterruptedException - InterruptedExceptionpublic Node getNode() throws AbortException
AbortException - AbortExceptionpublic FilePath prepareWorkspace(@Nonnull Task task, ArgumentListBuilder args) throws IOException, InterruptedException
task - Taskargs - ArgumentListBuilderIOException - IOExceptionInterruptedException - InterruptedExceptionpublic ExamTool getTool(@Nullable ExamTool tool) throws IOException, InterruptedException
tool - ExamToolIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void handleIOException(long startTime,
IOException e,
ExamTool[] installations)
throws AbortException
startTime - longe - IOExceptioninstallations - ExamTool[]AbortException - AbortExceptionCopyright © 2016–2023 MicroNova AG. All rights reserved.