-
Story
-
Resolution: Duplicate
-
Minor
-
None
-
Pipeline Model 0.1
With the arrival of the new shared libraries, this seems like a good time to add a section to the model for loading said shared libraries. Traditional "global library" contents will kinda work in the declarative subset currently - if they're just functions, and if they've got multiple arguments, if they're taking those arguments as named parameters. But foo.bar(), foo(1, 2, 3), foo('a') (closure) and any syntax involving an equals sign don't fall into the declarative subset, so a lot of what people do now may not work. Additionally, the load step won't work unless you're chaining methods onto the load - i.e., load('foo.groovy').someMethod() will work, but def foo = load('foo.groovy.); foo.bar() will not. So we should probably have a section that provides syntactic sugar for loading files.
- relates to
-
JENKINS-38110 Library section within declarative syntax to explicitly load shared libraries
- Closed