Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37825

Pipeline Model: Add the ability to load shared libraries in the model

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            Show
            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                abayer Andrew Bayer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: