Strip call() down to bare syntax, no parameters only a closure body with arguments
Change-Id: I09797d5819e701f76f6cfeb6a4bc2bebd88cd304
diff --git a/vars/iam.groovy b/vars/iam.groovy
index cafd8f2..845bdd0 100644
--- a/vars/iam.groovy
+++ b/vars/iam.groovy
@@ -112,14 +112,14 @@
// -----------------------------------------------------------------------
Boolean call\
(
- def body, // jenkins closure attached to the call iam() {closure}
- def self, // jenkins env object for access to primitives like echo()
+ Closure body, // jenkins closure attached to the call iam() {closure}
+ // def self, // jenkins env object for access to primitives like echo()
)
{
// evaluate the body block and collect configuration into the object
Map argv = [:] // {ternary,elvis} operator
body.resolveStrategy = Closure.DELEGATE_FIRST
- body.delegate = config
+ body.delegate = argv
body()
String iam = getIam(argv, 'main')