On Tue, Mar 5, 2019 at 1:07 PM <[email protected]> wrote:
> The step can be used with our without a body
Huh? That is not possible. I given `StepDescriptor` specifies whether
it `takesImplicitBlockArgument` or not. If you want two syntaxes, you
need two step names.
> # applies the config to the current block
There is no such concept in Pipeline.
> I would like to increase the ergonomics of the syntax
>
> # desired syntax
> stage("s") {
> foo.setting = 1
This is not possible using steps.
> implement it with a global variable
As noted in the `GlobalVariable` Javadoc, you should avoid this API.
> Do you think this functionality would be in scope of Jenkins?
No. I would stick to the block-scoped step and leave it at that.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1Qm2HyrA4OD__dvdor_%2BdcLAEjbp659fD-gCWnt-88aQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.