-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
I'd like to be able to share recommended defaults for options directives. My initial use case was sharing steps through shared libraries.
// vars/defaultOptionsConfig.groovy call() { timestamps() } options { defaultOptionsConfig() ansiColor('xterm') }
At the same time, It'd also be nice to be able to be able to shared directives generally, so I didn't want to scope the request down too far.
// vars/defaultOptions.groovy
call() {
options {
timestamps()
}
}
pipeline {
...
defaultOptions()
stages {
...
}
}
- is duplicated by
-
JENKINS-50548 Shared Library should be allowed to declare reusable stages
-
- Fixed but Unreleased
-
- links to
[JENKINS-49135] Support for reusable sharing Declarative directives
Summary | Original: Support for reusable sharing option directives | New: Support for reusable sharing Declarative directives |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "PR #241 (Web Link)" [ 19945 ] |
Link |
New:
This issue is duplicated by |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Assignee | Original: Andrew Bayer [ abayer ] |