No, it is not. You can put the contents of the steps block into a library
function and call that, but not the entire stage or stages blocks.

A.

On Sat, Jan 7, 2017 at 10:52 PM Dan Tran <dant...@gmail.com> wrote:

>
> Hi
>
> is it doable to place "stages" block into a jenkinsfile lib for reuse
> purpose? if possible give me some hint on how to add it
>
> Here is mine sample pipeline
>
> pipeline {
>
>     parameters {
>
>                   ...
>
>     }
>
>
>
>     agent any
>
>     stages {
>        ...
>     }
> }
>
>
> I am very new to Jenkinsfile, groovy, and its eco system.
>
> Very much appreciated any advice.
>
> -Dan
>
>
>
>
>
>
>
>
>
> --
>
>
> 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/ddbfe8df-9191-4355-b96f-b23b87620680%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/ddbfe8df-9191-4355-b96f-b23b87620680%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/CAPbPdOZj2XWBxDew8CCtcD1x-_ZPek%2BoPpACzniAV6hsMLeDMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to