A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

aborted(Closure) - Method in PostDeclaration
addCredential(String, String) - Method in BasePipelineTest
addEnvVar(String, String) - Method in BasePipelineTest
Helper for adding a environment value in tests
addParam(String, Object, Boolean) - Method in BasePipelineTest
Helper for adding a params value in tests
addPreviousBuild(String) - Method in BasePipelineTest
Adds a previous build and sets the previous build status.
addReadFileMock(String, String) - Method in PipelineTestHelper
addShMock(String, Closure) - Method in PipelineTestHelper
Configure mock callback for the `sh` command.
agent(Closure) - Method in GenericPipelineDeclaration
AgentDeclaration - Class in com.lesfurets.jenkins.unit.declarative
AgentDeclaration.DockerDeclaration - Class in com.lesfurets.jenkins.unit.declarative
allowedMethodCallbacks - Field in PipelineTestHelper
List of allowed methods with default interceptors.
always(Closure) - Method in PostDeclaration
args(String) - Method in AgentDeclaration.DockerDeclaration
argsToString() - Method in MethodCall
@see #callArgsToString(com.lesfurets.jenkins.unit.MethodCall)
argsToString() - Method in MethodSignature
ARGUMENT_MISMATCH - Field in RegressionTestHelper
assertCallStack() - Method in BasePipelineTest
assertCallStackContains(String) - Method in BasePipelineTest
assertJobStatusAborted() - Method in BasePipelineTest
Asserts the job status is ABORTED.
assertJobStatusFailure() - Method in BasePipelineTest
Asserts the job status is FAILURE.
assertJobStatusSuccess() - Method in BasePipelineTest
Asserts the job status is SUCCESS.
assertJobStatusUnstable() - Method in BasePipelineTest
Asserts the job status is UNSTABLE.

B

BasePipelineTest - Class in com.lesfurets.jenkins.unit
BasePipelineTest() - Constructor in BasePipelineTest
BasePipelineTestCPS - Class in com.lesfurets.jenkins.unit.cps
BasePipelineTestCPS() - Constructor in BasePipelineTestCPS
BaseRegressionTest - Class in com.lesfurets.jenkins.unit
BaseRegressionTestCPS - Class in com.lesfurets.jenkins.unit.cps
binding - Field in PipelineTestHelper
Let scripts and library classes access global vars (env, currentBuild)
booleanParam(Map) - Method in ParametersDeclaration
branch(String) - Method in WhenDeclaration
build(String, String) - Method in DockerMock
buildingTag() - Method in WhenDeclaration

C

call(SourceUnit, GeneratorContext, ClassNode) - Method in LibraryAnnotationTransformer
callArgsToString(MethodCall) - Method in MethodCall
Extract joined string representation of call arguments.
callClosure(Closure, Object) - Method in PipelineTestHelper
Call closure by handling spreading of parameter default values
callClosure(Closure, Object) - Method in PipelineTestHelperCPS
Call closure using Continuation steps of groovy CPS At each step whole environment of the step is verified against serializability
callIfClosure(Object, Object) - Method in PipelineTestHelper
callMethod(MetaMethod, Object, Object) - Method in PipelineTestHelper
Call given method on delegate object with args parameters
callMethod(MetaMethod, Object, Object) - Method in PipelineTestHelperCPS
callStackDump() - Method in BasePipelineTest
callToSignature(MethodCall) - Method in MethodCall
Extract method signature
changed(Closure) - Method in PostDeclaration
choice(Map) - Method in ParametersDeclaration
cleanup(Closure) - Method in PostDeclaration
clearCallStack() - Method in PipelineTestHelper
Clear call stack
CLONE_TIMEOUT - Field in SourceRetriever
compareCallStack(List<MethodCall>, List<MethodCall>) - Method in RegressionTestHelper
For all method calls in stack a, there is a corresponding method call in stack b
createComponent(Class<T>, Closure) - Method in GenericPipelineDeclaration
customWorkspace(String) - Method in AgentDeclaration

D

DeclarativePipeline - Class in com.lesfurets.jenkins.unit.declarative
DeclarativePipeline() - Constructor in DeclarativePipeline
DeclarativePipelineTest - Class in com.lesfurets.jenkins.unit.declarative
dir(String) - Method in AgentDeclaration
docker(Closure) - Method in AgentDeclaration
dockerfile(Closure) - Method in AgentDeclaration
DockerMock - Class in com.lesfurets.jenkins.unit
DockerMock.Container - Class in com.lesfurets.jenkins.unit
DockerMock.Container(String) - Constructor in DockerMock.Container
DockerMock.Image - Class in com.lesfurets.jenkins.unit
DockerMock.Image(String) - Constructor in DockerMock.Image

E

environment(Closure) - Method in GenericPipelineDeclaration
environment(def) - Method in WhenDeclaration
equals(def) - Method in MethodCall
equals(def) - Method in MethodSignature
execute(Object) - Method in AgentDeclaration
execute(Object) - Method in DeclarativePipeline
execute(Object) - Method in GenericPipelineDeclaration
execute(Object) - Method in ParallelDeclaration
execute(Object) - Method in PostDeclaration
execute(Object) - Method in StageDeclaration
execute(Object) - Method in WhenDeclaration
executeOn(Object, Closure<T>) - Method in GenericPipelineDeclaration
executeWith(Object, Closure<T>) - Method in GenericPipelineDeclaration
expression(Closure) - Method in WhenDeclaration

F

failFast(boolean) - Method in StageDeclaration
failure(Closure) - Method in PostDeclaration
fixed(Closure) - Method in PostDeclaration

G

GenericPipelineDeclaration - Class in com.lesfurets.jenkins.unit.declarative
getAllowedMethodEntry(String, Object) - Method in PipelineTestHelper
Search for the allowed method entry A null Closure will mean that the method is allowed but not intercepted.
getBinding_var() - Method in StageDeclaration
getCurrentBuild() - Method in AgentDeclaration
getCurrentBuild() - Method in GenericPipelineDeclaration
getEnv() - Method in AgentDeclaration
getEnv() - Method in GenericPipelineDeclaration
getGroovyClassLoader() - Method in LibraryLoader
Return class loader for all libraries
getIdentifier() - Method in LibraryRecord
getLibLoader() - Method in PipelineTestHelper
Get library loader object
getLibraryId(LibraryConfiguration, String) - Method in LibraryLoader
getMethodInterceptor() - Method in PipelineTestHelper
getMethodMissingInterceptor() - Method in PipelineTestHelper
getParams() - Method in AgentDeclaration
getParams() - Method in DeclarativePipeline
getParams() - Method in GenericPipelineDeclaration
getParams() - Method in ParametersDeclaration
getProperty(String) - Method in LibClassLoader
GitSource - Class in com.lesfurets.jenkins.unit.global.lib
gitSource(String) - Method in GitSource
gse - Field in PipelineTestHelper
Internal script engine

H

hashCode() - Method in MethodCall
hashCode() - Method in MethodSignature

I

image(String) - Method in AgentDeclaration.DockerDeclaration
image(String) - Method in DockerMock
imageName() - Method in DockerMock.Image
init() - Method in PipelineTestHelper
init() - Method in PipelineTestHelperCPS
initHelper() - Method in BasePipelineTest
inside(String, Closure) - Method in DockerMock.Image
interceptClassMethods(MetaClass, PipelineTestHelper, Binding) - Method in InterceptingGCL
InterceptingGCL - Class in com.lesfurets.jenkins.unit
InterceptingGCL(PipelineTestHelper, ClassLoader, CompilerConfiguration, Binding) - Constructor in InterceptingGCL
invokeMethod(String, Object) - Method in LibClassLoader
isInitialized() - Method in PipelineTestHelper
@return true if internal GroovyScriptEngine is set
isMethodAllowed(String, def) - Method in PipelineTestHelper
@param name method name

J

K

L

label(String) - Method in AgentDeclaration
label(String) - Method in AgentDeclaration.DockerDeclaration
LibClassLoader - Class in com.lesfurets.jenkins.unit
Kind of proxy object to create instances of library's classes
LibClassLoader(def, String, def) - Constructor in LibClassLoader
Library - Annotation Type in com.lesfurets.jenkins.unit.global.lib
Annotation definition to avoid missing import
library(String) - Method in LibraryConfiguration
LibraryAnnotationTransformer - Class in com.lesfurets.jenkins.unit.global.lib
Parses class definitions for Library annotation Shamelessly adapted from workflow.cps.lib.plugin
LibraryAnnotationTransformer(LibraryLoader) - Constructor in LibraryAnnotationTransformer
LibraryConfiguration - Class in com.lesfurets.jenkins.unit.global.lib
Mock for org.jenkinsci.plugins.workflow.libs.LibraryConfiguration
LibraryConfiguration.LibraryBuilder - Class in com.lesfurets.jenkins.unit.global.lib
LibraryLoader - Class in com.lesfurets.jenkins.unit.global.lib
Loads global shared libraries to groovy class loader
LibraryLoader.LibraryLoadingException - Class in com.lesfurets.jenkins.unit.global.lib
LibraryLoader.LibraryLoadingException(Throwable, LibraryConfiguration, String) - Constructor in LibraryLoader.LibraryLoadingException
LibraryLoader(GroovyClassLoader, Map<String, LibraryConfiguration>) - Constructor in LibraryLoader
LibraryRecord - Class in com.lesfurets.jenkins.unit.global.lib
LibraryRecord(LibraryConfiguration, String, List<String>) - Constructor in LibraryRecord
loadClass(String) - Method in InterceptingGCL
loadImplicitLibraries() - Method in LibraryLoader
Loads all implicit library configurations
loadInterceptor - Field in PipelineTestHelper
Method interceptor for method 'load' to load scripts via encapsulated GroovyScriptEngine
loadLibrary(String) - Method in LibraryLoader
Load library described by expression if it corresponds to a known library configuration
loadScript(String) - Method in BasePipelineTest
Loads without running the script by its name/path, returning the Script
loadScript(String, Binding) - Method in PipelineTestHelper
Load the script with given binding context without running, returning the Script
LocalSource - Class in com.lesfurets.jenkins.unit.global.lib
localSource(String) - Method in LocalSource

M

METHOD_CALL_COUNT - Field in RegressionTestHelper
METHOD_CALL_NOT_EXISTS - Field in RegressionTestHelper
method(String, Class) - Method in MethodSignature
MethodCall - Class in com.lesfurets.jenkins.unit
methodCallCount(String) - Method in PipelineTestHelper
Count the number of calls to the method with name
methodInterceptor - Field in PipelineTestHelper
Method interceptor for any method called in executing script.
MethodSignature - Class in com.lesfurets.jenkins.unit
MethodSignature(String, Class) - Constructor in MethodSignature
MockClosure - Class in com.lesfurets.jenkins.unit.cps
MockClosure(Object, Object, List<String>, Block, Env) - Constructor in MockClosure
MockPipelineScript - Class in com.lesfurets.jenkins.unit
MockPipelineScriptCPS - Class in com.lesfurets.jenkins.unit.cps

N

node(Closure) - Method in AgentDeclaration

O

ObjectUtils - Class in com.lesfurets.jenkins.unit.declarative
options(Closure) - Method in DeclarativePipeline
options(Closure) - Method in StageDeclaration

P

parallel(Closure) - Method in StageDeclaration
ParallelDeclaration - Class in com.lesfurets.jenkins.unit.declarative
ParallelDeclaration() - Constructor in ParallelDeclaration
parallelInterceptor - Field in PipelineTestHelper
Method interceptor for method 'parallel'
parameters(Closure) - Method in DeclarativePipeline
ParametersDeclaration - Class in com.lesfurets.jenkins.unit.declarative
parseClass(GroovyCodeSource, boolean) - Method in InterceptingGCL
password(Map) - Method in ParametersDeclaration
PIPELINE_STACK_WRITE - Field in RegressionTestHelper
PipelineTestHelper - Class in com.lesfurets.jenkins.unit
PipelineTestHelper.MockScriptOutput - Class in com.lesfurets.jenkins.unit
Simple container for holding mock script output.
PipelineTestHelper.MockScriptOutput(Closure) - Constructor in PipelineTestHelper.MockScriptOutput
PipelineTestHelper(String, String, Class, Map<String, String>, ClassLoader, String) - Constructor in PipelineTestHelper
PipelineTestHelperCPS - Class in com.lesfurets.jenkins.unit.cps
port() - Method in DockerMock.Container
post(Closure) - Method in GenericPipelineDeclaration
PostDeclaration - Class in com.lesfurets.jenkins.unit.declarative
printCallStack() - Method in BasePipelineTest
printNonNullProperties(Object) - Method in ObjectUtils
ProjectSource - Class in com.lesfurets.jenkins.unit.global.lib
Retrieves the shared lib sources of the current project which are expected to be at the default location (".
projectSource(String) - Method in ProjectSource
propertyMissing(String, def) - Method in DeclarativePipeline
pull() - Method in DockerMock.Image
push(String) - Method in DockerMock.Image

Q

R

readFile(def) - Method in PipelineTestHelper
registerAllowedMethod(MethodSignature, Consumer) - Method in PipelineTestHelper
@param methodSignature
registerAllowedMethods() - Method in BasePipelineTest
registerMethodCall(Object, int, String, Object) - Method in PipelineTestHelper
Register method call to call stack
registerSharedLibrary(LibraryConfiguration) - Method in PipelineTestHelper
Register library description See LibraryConfiguration for its description
regression(Closure) - Method in PostDeclaration
RegressionTest - Trait in com.lesfurets.jenkins.unit
RegressionTestHelper - Class in com.lesfurets.jenkins.unit
retrieve(String, String, String) - Method in GitSource
retrieve(String, String, String) - Method in LocalSource
retrieve(String, String, String) - Method in ProjectSource
retrieve(String, String, String) - Method in SourceRetriever
reuseNode(boolean) - Method in AgentDeclaration
roundtripSerialization(T) - Method in PipelineTestHelperCPS
Marshall - Unmarshall object to test serializability
run(String, String) - Method in DockerMock.Image
runScript(Script) - Method in BasePipelineTest
Run the script object
runScript(Script) - Method in PipelineTestHelper
Run the given script object
runScriptInternal(Script) - Method in PipelineTestHelper
Run the script
runScriptInternal(Script) - Method in PipelineTestHelperCPS
runSh(def) - Method in PipelineTestHelper

S

SCRIPT_SET_BINDING - Field in PipelineTestHelper
scriptBaseClass - Field in PipelineTestHelperCPS
setGlobalVars(Binding) - Method in PipelineTestHelper
Sets global variables defined in loaded libraries on the binding
setParams(String, Object) - Method in ParametersDeclaration
setUp() - Method in BasePipelineTest
setUp() - Method in DeclarativePipelineTest
setVariables() - Method in BasePipelineTest
sleep(long) - Method in MockClosure
Override sleep method
sleep(long) - Method in MockPipelineScript
Override sleep method
SourceRetriever - Interface in com.lesfurets.jenkins.unit.global.lib
stage(String, Closure) - Method in GenericPipelineDeclaration
stage(String, Closure) - Method in ParallelDeclaration
StageDeclaration - Class in com.lesfurets.jenkins.unit.declarative
StageDeclaration(String) - Constructor in StageDeclaration
stages(Closure) - Method in GenericPipelineDeclaration
steps(Closure) - Method in StageDeclaration
stop() - Method in DockerMock.Container
string(Map) - Method in ParametersDeclaration
success(Closure) - Method in PostDeclaration

T

tag(String) - Method in DockerMock.Image
tag(String) - Method in WhenDeclaration
testNonRegression(String) - Method in RegressionTest
Checks the current callstack is the same as the reference callstack.
testNonRegression(PipelineTestHelper, String) - Method in RegressionTestHelper
text(Map) - Method in ParametersDeclaration
tools(Closure) - Method in GenericPipelineDeclaration
toSignature() - Method in MethodCall
@see #callToSignature(com.lesfurets.jenkins.unit.MethodCall)
toString() - Method in AgentDeclaration.DockerDeclaration
toString() - Method in GitSource
toString() - Method in LibraryConfiguration
toString() - Method in LocalSource
toString() - Method in MethodCall
toString() - Method in MethodSignature
toString() - Method in ProjectSource
toStringWithClosures(Object) - Method in MethodCall
Convert argument object structure with Closures to String representation for comparison.
triggers(Closure) - Method in DeclarativePipeline

U

unstable(Closure) - Method in PostDeclaration
unsuccessful(Closure) - Method in PostDeclaration
updateBuildStatus(String) - Method in BasePipelineTest
Updates the build status.

V

validate() - Method in LibraryConfiguration
value() - Method in Library
Library names, each optionally followed by @ and a version.

W

when(Closure) - Method in StageDeclaration
WhenDeclaration - Class in com.lesfurets.jenkins.unit.declarative
withRegistry(String, String, Closure) - Method in DockerMock
withRun(String, String, Closure) - Method in DockerMock.Image
withServer(String, String, Closure) - Method in DockerMock
withTool(String, Closure) - Method in DockerMock

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _