From c74addda8f02003c1613b07dab874d09e1644e30 Mon Sep 17 00:00:00 2001 From: Willem Borgesius Date: Thu, 17 Sep 2020 12:25:04 +0200 Subject: [PATCH] Commit changelist "try to fix missing method" --- .../jenkins/unit/declarative/GenericPipelineDeclaration.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy b/src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy index 04564833..26d5a9e0 100644 --- a/src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy +++ b/src/main/groovy/com/lesfurets/jenkins/unit/declarative/GenericPipelineDeclaration.groovy @@ -14,7 +14,7 @@ abstract class GenericPipelineDeclaration { static T createComponent(Class componentType, @DelegatesTo(strategy = DELEGATE_FIRST) Closure closure) { // declare componentInstance as final to prevent any multithreaded issues, since it is used inside closure final def componentInstance = componentType.newInstance() - def rehydrate = closure.rehydrate(componentInstance, owner ? owner : componentInstance, this) + def rehydrate = closure.rehydrate(componentInstance, closure, componentInstance) if (binding && componentInstance.hasProperty('binding') && componentInstance.binding != binding) { componentInstance.binding = binding }