JenkinsPipelineUnit
JenkinsPipelineUnit copied to clipboard
Enable CPS feature with Declarative Pipelines
I am experiencing a lot of inconsistencies between executing pipelines in JenkinsPipelineUnit and on Jenkins itself, due to CPS transformation, as noted in README.md
I want to enable this on my declarative pipeline tests in order to test as close to the real thing as possible. I need to be able to trust the result of the test actually hold when running on Jenkins.
So far I can only see a CPS version of BasePipelineTest. But is there any way to enable this for declarative pipelines (DeclarativePipelineTest) too?