-
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