title: Is there anyway i can get value from groovy closure
body: <p>I have a closure as below and i want to get value from a, b, c.</p>
  <pre><code>#!/usr/bin/env groovy
  entry {
      a = false
      b = &quot;nodejs&quot;
      c = &quot;xxx&quot;
  }
  println entry.a
  println entry.b
  println entry.c
  </code></pre>
  <p>Is there any way i can achieve this ?
  I always got the error as below</p>
  <pre><code>% groovy jenkinsfile.groovy
  Caught: groovy.lang.MissingMethodException: No signature of method: jenkinsfile.entry() is applicable for argument types: (jenkinsfile$_run_closure1) values: [jenkinsfile$_run_closure1@12aba8be]
  Possible solutions: every(), every(groovy.lang.Closure), any(), any(groovy.lang.Closure), notify(), identity(groovy.lang.Closure)
  groovy.lang.MissingMethodException: No signature of method: jenkinsfile.entry() is applicable for argument types: (jenkinsfile$_run_closure1) values: [jenkinsfile$_run_closure1@12aba8be]
  Possible solutions: every(), every(groovy.lang.Closure), any(), any(groovy.lang.Closure), notify(), identity(groovy.lang.Closure)
      at jenkinsfile.run(jenkinsfile.groovy:2)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  </code></pre>
  <p><strong>I have to use this way because I have lots of Jenkinsfile writing in this format and i want to get values from Jenkinsfile. That's format from Jenkinsfile.</strong></p>