-
Improvement
-
Resolution: Won't Fix
-
Major
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
The only real problem I can forsee is that the names of DSL files in the global lib are, well, global.
eg:
builg.groovy is used as
build {
..
}
In the script. If you install 2 plugins that each want to have a build.groovy - how is the conflict resolved? will the second one they install fail?
(I fear to suggest qualified imports.... as that kind of harshes the vibe, but some way to resolve this may be warranted).