| Type | Name and description |
|---|---|
java.lang.ClassLoader |
baseClassLoader |
java.lang.String |
baseScriptRoot |
groovy.lang.Binding |
binding |
PipelineTestHelper |
helper |
java.util.Map<java.lang.String, java.lang.String> |
imports |
java.lang.String |
scriptExtension |
java.lang.String[] |
scriptRoots |
java.lang.Object |
stringInterceptor |
java.lang.Object |
withCredentialsInterceptor |
| Constructor and description |
|---|
BasePipelineTest
() |
| Type | Name and description |
|---|---|
void |
assertJobStatusFailure()Asserts the job status is FAILURE. |
void |
assertJobStatusSuccess()Asserts the job status is SUCCESS. |
void |
assertJobStatusUnstable()Asserts the job status is UNSTABLE. |
groovy.lang.Script |
loadScript(java.lang.String scriptName)Loads without running the script by its name/path, returning the Script |
void |
printCallStack() |
java.lang.Object |
runScript(java.lang.String scriptName)Loads and runs the script by its name/path |
java.lang.Object |
runScript(groovy.lang.Script script)Run the script object |
void |
setUp() |
void |
updateBuildStatus(java.lang.String status)Updates the build status. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Asserts the job status is FAILURE. Please check the mocks update this status when necessary.
Asserts the job status is SUCCESS. Please check the mocks update this status when necessary
Asserts the job status is UNSTABLE. Please check the mocks update this status when necessary
Loads without running the script by its name/path, returning the Script
scriptName - script name or pathLoads and runs the script by its name/path
scriptName - script name or pathRun the script object
script - Script objectUpdates the build status. Can be useful when mocking a jenkins method.
status - job status to setGroovy Documentation