Class ImportProjectClient
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTMSClient
-
- de.tracetronic.jenkins.plugins.ecutest.test.client.ImportProjectClient
-
public class ImportProjectClient extends AbstractTMSClient
Client to import ecu.test projects via COM interface.
-
-
Constructor Summary
Constructors Constructor Description ImportProjectClient(TMSConfig importConfig)
Instantiates a newImportProjectClient
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TMSConfig
getImportConfig()
boolean
importProject(Item project, FilePath workspace, Launcher launcher, TaskListener listener)
Imports a project according to given import configuration.boolean
importProjectArchive(Launcher launcher, TaskListener listener)
Imports a project from an archive.boolean
importProjectAttributes(Item project, FilePath workspace, Launcher launcher, TaskListener listener)
Imports a project according to given import configuration.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.test.client.AbstractTMSClient
isCompatible, login, logout
-
-
-
-
Constructor Detail
-
ImportProjectClient
public ImportProjectClient(TMSConfig importConfig)
Instantiates a newImportProjectClient
.- Parameters:
importConfig
- the import project configuration
-
-
Method Detail
-
getImportConfig
public TMSConfig getImportConfig()
-
importProject
public boolean importProject(Item project, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
Imports a project according to given import configuration.- Parameters:
project
- the projectworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if successful,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the build gets interrupted
-
importProjectAttributes
public boolean importProjectAttributes(Item project, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
Imports a project according to given import configuration.- Parameters:
project
- the projectworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if successful,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the build gets interrupted
-
importProjectArchive
public boolean importProjectArchive(Launcher launcher, TaskListener listener) throws IOException, InterruptedException
Imports a project from an archive.- Parameters:
launcher
- the launcherlistener
- the listener- Returns:
true
, if import succeeded,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the build gets interrupted
-
-