Hi -

In the latest release of Declarative Pipelines (0.6), we've got a new
"when" section on stages to do exactly what you want -
https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Advanced#controlling-when-stages-execute

A.

On Wed, Oct 26, 2016 at 9:09 AM, Eddard <[email protected]> wrote:

> I recently been introduced to declarative pipeline
> me and my team would like to use this model on most
> of our CI Jobs.
>
> The problem we are trying to solve right now is to find a way to execute
> certain stages or steps only on certain branches (master)
> is there a declarative way to do that?
>
> best regards
> Eddard
>
> --
> 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/db46828f-a8df-45ce-8623-e9e401096866%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/db46828f-a8df-45ce-8623-e9e401096866%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdOZ3g6VwdmmO8inX5Ba6L7oyq_s3ff22B3im2_9cPAbfRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to