All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Scan classpaths for extensions only once
- Fixed a bug for Java 11 compatibility
Release Date: 2021-04-13
- the deprecated
fast-classpath-scanner
dependency to its latest formclassgraph
. - the deprecated
FastClasspathScanner
class to its latest formClassGraph
.
Release Date: 2020-06-01
- Solution for Jenkins extensions that interact with the
Jenkins
singelton at classload- or Descriptor-instantiation-time:- jenkins-spock automatically injects a mock Jenkins singleton before any Jenkins extensions are classloaded or instantiated, so that
Jenkins.getInstanceOrNull()
is notnull
. makeStaticJenkins()
method to allow test suites to provide their own pre-test-suite Jenkins singleton if necessary, such as if the spec needs to stub pre-test-suite interaction withJenkins
- Please see the "Mock Jenkins" section of the
JenkinsPipelineSpecification
GroovyDoc.
- jenkins-spock automatically injects a mock Jenkins singleton before any Jenkins extensions are classloaded or instantiated, so that
Release Date: 2020-05-29
jenkins-spock
version used in examples is updated to the released version on release.
Release Date: 2020-03-12
- Updated Reflections to 0.9.12
Release Date: 2020-02-06
- Could not use
loadPipelineScriptForTest(...)
with Groovy scripts whose filenames were not valid Java class names.
Release Date: 2020-02-04
- Added
<repositories>
section to all poms pointing to the Jenkins Release repository - so that Jenkins artifacts can be successfully located during builds.
- Emit more-specific exception when tests call a Groovy method with an incorrect signature.
- Clarified documentation for using "global" variables in tests.
- Make the resource path lookup customizable for
JenkinsPipelineSpecification#loadPipelineScriptForTest
. To define your own path setJenkinsPipelineSpecification.scriptClassPath
. - The
maven-invoker-plugin
now runs some of the "working example" projects as integration tests. - The
parallel()
pipeline step is special-cased and will execute all of its closures during tests.
Release Date: 2018-09-13
- Layout of documentation files in
-javadoc
artifact was incorrect.
Release Date: 2018-09-12
Initial OSS Release.