Sharing common declarative pipeline parameters

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Sharing common declarative pipeline parameters

Matt Stave
It seems you can use

in a declarative pipeline file to do stuff like

mySpecialPipeline {
= 'foo'

and have

pipeline { ...
...echo config.someString

in vars/mySpecialPipeline.groovy

and you can reference vars/myCustomStep.groovy

but is it possible to share job
parameters {}


My various attempts met with various errors about how I fail at closure-ing :)    Trying to reference the shared stuff inside the block yielded "parameter expected" kinda stuff, or "block not allowed here".

--- Matt

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit
For more options, visit