-
Type:
Improvement
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Won't Fix
-
Component/s: workflow-cps-plugin
-
Similar Issues:
I'd like to be able to write a plugin that provides an opinionated DSL for Pipeline, behaving like it had been added to the global library, i.e., something like https://github.com/jenkinsci/workflow-examples/tree/master/global-library-examples/global-function but more so. I like the idea of delivering it via a plugin so that it can be tested, versioned, released, etc like any other plugin, but I don't see any way to do this currently. I'd imagine the logical way to do this would be to add the capacity to do this to Pipeline proper, but I could be wrong.
- depends on
-
JENKINS-34650 Allow global libraries to bypass the sandbox
-
- Resolved
-
- is related to
-
JENKINS-26126 DSLD and/or GDSL
-
- In Progress
-
-
JENKINS-35395 Snippet Generator no longer includes global variables
-
- Resolved
-
- relates to
-
JENKINS-37011 Provide a way to write full-fledged Steps in CPS-transformed Groovy
-
- Resolved
-
- links to
Also need to allow the library code to be loaded in trusted mode, which the GlobalVariable API does not currently make straightforward. That would simplify some things; for example DockerDSL.MiscWhitelist could be deleted, and @Whitelisted removed from ImageNameTokens.