It seems you can use
in a declarative pipeline file to do stuff like
mySpecialPipeline {
someString = '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
?
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