Details
-
Type:
Improvement
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: workflow-cps-global-lib-plugin
-
Labels:None
-
Similar Issues:
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
Code changed in jenkins
User: R. Tyler Croy
Path:
content/doc/book/pipeline/shared-libraries.adoc
http://jenkins-ci.org/commit/jenkins.io/e1e6b15eb89a70814c190dda90d3f22c1730e051
Log:
Merge pull request #712 from jglick/LibraryStep-
JENKINS-31155JENKINS-39450Documenting library stepCompare: https://github.com/jenkins-infra/jenkins.io/compare/91d352197897...e1e6b15eb89a