Thanks for asking the question! I see the same message and didn't find an explanation (at least that I understood) of the intention for a block argument in a stage.
Looking forward to the answer.. Mark Waite On Thu, Sep 1, 2016 at 4:00 PM <jer...@bodycad.com> wrote: > Hi, > > I now have the following message into my pipeline workflow but I don't > really know what exactly is the new proper way of doing it. > > Here's a simplified version of what I do > node > { > stage 'Checkout' > ... > stage 'Build' > ... > stage 'Build Unit Tests' > ... > } > > > but now I see this message for every stage into my console output: > > [Pipeline] stage (Checkout) > *17:10:09* Using the ‘stage’ step without a block argument is deprecated > *17:10:09* Entering stage Checkout > > > If I check this page: > https://jenkins.io/doc/pipeline/steps/pipeline-stage-step/ > > versus good call: > https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/ > > seem like it's deprecated but I don't known what exactly replace it?!? and > can I keep the stage view like this?!? > > > <https://lh3.googleusercontent.com/-_ZcY6JkHbuc/V8ifmhj5-8I/AAAAAAAAAEA/CtaN-Mwgl84eA6We73qoT7zBHXFt0-QwgCLcB/s1600/Capture.PNG> > > > > stage now takes a block argument, what is that argument exactly? what is > considered a block? > > Thanks > Jerome > > -- > 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 jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/b7ef10d7-5f0c-4d2d-87c1-bcc42ef33144%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/b7ef10d7-5f0c-4d2d-87c1-bcc42ef33144%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGzmn%2Bq8xWrJdYAbR6wYyqX5gNmyCa%2BZxLDDBScYouS%3Dw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.