|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
src/main/groovy/com/cloudbees/plugins/flow/FlowDSL.groovy
src/test/groovy/com/cloudbees/plugins/flow/BindingTest.groovy
src/test/groovy/com/cloudbees/plugins/flow/BuildTest.groovy
http://jenkins-ci.org/commit/build-flow-plugin/f10be22bdc7693e3e12137ae8fab1fe05788b3a7
Log:
[FIXED JENKINS-17199]
To inject DSL into the script being parsed, the common technique used
elsewhere (for example in Spring bean builder Groovy DSL) is to set
the DSL object as a delegate. This avoids the need to do string
manipulation, and there's no ExpandoMetaClass hack necessary.
I'v moved the bindings to FlowDelegate. This resolves
the conflict between "build" as a variable and "build" as a function
(since binding gets found more quickly it tries to evaluate that
variable as a Callable), and it'll also make it easier for people to
find all the available DSL methods/variables in one place.
–
You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.