[JIRA] (JENKINS-37825) Pipeline Model: Add the ability to load shared libraries in the model

3 views
Skip to first unread message

andrew.bayer@gmail.com (JIRA)

unread,
Aug 30, 2016, 6:15:01 PM8/30/16
to jenkinsc...@googlegroups.com
Andrew Bayer created an issue
 
Jenkins / Story JENKINS-37825
Pipeline Model: Add the ability to load shared libraries in the model
Issue Type: Story Story
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2016/Aug/30 10:14 PM
Environment: Pipeline Model 0.1
Priority: Minor Minor
Reporter: Andrew Bayer

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Sep 16, 2016, 2:05:01 PM9/16/16
to jenkinsc...@googlegroups.com
Andrew Bayer resolved as Duplicate
Change By: Andrew Bayer
Status: Open Resolved
Resolution: Duplicate

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:15 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Duplicate
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages