Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
It'd be really nice to have a step that allowed you to load a shared library, rather than just having to use the annotations. This is specifically relevant for JENKINS-38110 in Declarative Pipelines - while we could figure out a way to handle translating the annotations between the Jenkinsfile format and the JSON format to be used by the editor, being able to have a libraries section that fit into the declarative syntax would be far preferable.
There's work already in flight towards this at https://github.com/jenkinsci/workflow-cps-global-lib-plugin/pull/14
Attachments
Issue Links
- blocks
-
JENKINS-41335 Allow variables and functions to be defined within pipeline to be used in any stage
-
- Closed
-
- is blocked by
-
JENKINS-37227 Metastep support for checkout step
-
- Open
-
- is blocking
-
JENKINS-38110 Library section within declarative syntax to explicitly load shared libraries
-
- Closed
-
- relates to
-
JENKINS-40560 Allow loading libraries in evaluated scripts
-
- Resolved
-
-
JENKINS-42079 Allow "local" Shared Library to be loaded from current repo branch
-
- Open
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Remote Link | This issue links to "WiP PR #14 (Web Link)" [ 15011 ] |
Link |
This issue is blocking |
Assignee | Jesse Glick [ jglick ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Link |
This issue relates to |
Link |
This issue blocks |
Link | This issue relates to JENKINS-42079 [ JENKINS-42079 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Remote Link | This issue links to "WiP PR #14 (Web Link)" [ 15011 ] |
Remote Link | This issue links to "PR 14 (Web Link)" [ 15502 ] |
Link | This issue is blocked by JENKINS-37227 [ JENKINS-37227 ] |
Remote Link | This issue links to "jenkins.io PR 712 (Web Link)" [ 15515 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Code changed in jenkins
User: Jesse Glick
Path:
content/doc/book/pipeline/shared-libraries.adoc
http://jenkins-ci.org/commit/jenkins.io/d01997e9bb747aec804900d294156377828f6cc6
Log:
JENKINS-39450Documenting library step.