Pipeline predefined steps question

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Pipeline predefined steps question

flavius.cater
Hello, I would like to see where the predefined steps in the pipeline syntax are declared. I am interested in the "stage" step as I would like to rename it to my "newstage" (if I rename the pipeline-stage-plugin StageStep name) and to work in declarative pipeline. (Because by changing the name in the plugin and use it like that works only in scripted pipeline).
Thanks !

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/9e17f805-9767-4748-86ef-48a7551d0946%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline predefined steps question

Jesse Glick-4
On Wed, Sep 5, 2018 at 7:27 AM <[hidden email]> wrote:
> I would like to see where the predefined steps in the pipeline syntax are declared.

In the plugin defining each step.

> I am interested in the "stage" step as I would like to rename it to my "newstage"

Not sure why, but do not do that.

> and to work in declarative pipeline

It will not. This keyword is hard-coded in Declarative Pipeline.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr04zs8u7bQhnCCifN6YmP3g5bagmh8zUuEzSFU%2BOfydRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline predefined steps question

flavius.cater
Thank you for answering to my question, was really helpful, saved me a lot of time.

On Wednesday, 5 September 2018 15:52:05 UTC+3, Jesse Glick wrote:
On Wed, Sep 5, 2018 at 7:27 AM <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="9Te-Pf7AAAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">flaviu...@...> wrote:
> I would like to see where the predefined steps in the pipeline syntax are declared.

In the plugin defining each step.

> I am interested in the "stage" step as I would like to rename it to my "newstage"

Not sure why, but do not do that.

> and to work in declarative pipeline

It will not. This keyword is hard-coded in Declarative Pipeline.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/86b0dd8a-38ef-474e-b3db-278fc4cff7ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.