[JIRA] (JENKINS-61468) Configuration option for shared pipeline libs

2 views
Skip to first unread message

anders@hammar.net (JIRA)

unread,
Mar 13, 2020, 8:41:04 AM3/13/20
to jenkinsc...@googlegroups.com
Anders Hammar created an issue
 
Jenkins / Improvement JENKINS-61468
Configuration option for shared pipeline libs
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: workflow-cps-global-lib-plugin
Created: 2020-03-13 12:40
Environment: n/a
Priority: Minor Minor
Reporter: Anders Hammar

Scenario:
A shared groovy lib which needs to be configured per Jenkins environment (like the URL to some server), but not per build project.

Currently a solution is to define an environment variabel for this. The drawback is that the env variabel is then available to everything in Jenkins. A much cleaner solution would be if it was possible to specify configuration just for this shared groovy lib. For example a key/value pair (configured for the library) which is then available as a variable in the groovy script.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages