Class TestProjectBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestHelper
de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestBuilder
de.tracetronic.jenkins.plugins.ecutest.test.TestProjectBuilder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
Builder providing the execution of an ecu.test project.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestHelper
AbstractTestHelper.GetSettingCallable
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
runTest
(String testFile, TestConfig testConfig, ExecutionConfig executionConfig, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Run the test with given configurations within a defined timeout.void
setProjectConfig
(ProjectConfig projectConfig) Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestBuilder
addBuildAction, getDescriptor, getExecutionConfig, getRequiredMonitorService, getTestConfig, getTestFile, perform, setExecutionConfig, setTestConfig
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestHelper
checkETInstance, checkTSInstance, closeETInstance, getConfigDir, getConfigFilePath, getDefaultConfigDir, getDefaultPackagesDir, getPackagesDir, getTestFilePath, getTestId
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
TestProjectBuilder
Instantiates a newTestProjectBuilder
.- Parameters:
testFile
- the project file
-
-
Method Details
-
getProjectConfig
-
setProjectConfig
-
runTest
protected boolean runTest(String testFile, TestConfig testConfig, ExecutionConfig executionConfig, Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedExceptionDescription copied from class:AbstractTestBuilder
Run the test with given configurations within a defined timeout.- Specified by:
runTest
in classAbstractTestBuilder
- Parameters:
testFile
- the full test file pathtestConfig
- the expanded test configurationexecutionConfig
- the expanded execution configurationrun
- the buildworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if running the test passed,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the build gets interrupted
-