Haven't done it myself but there is the different Property Strategy in the multibranch config of "Named branches get different properties" - so presumably you could set (or unset) a property for certain branches and drive the decision to deploy off of that?
Richard. On Fri, 13 May 2016 at 11:24 Mike Caspar <[email protected]> wrote: > > I am working on a pipeline that does Test/Deploy after a commit. > > That's all cool! > > However....When I create a branch (for a new feature), and it gets > auto-launched as a new build pipeline, how do I prevent the same > Jenkinsfile from initiating the Deploy step, since it's the same > Jeniinsfile ? > > Is there a standard way to do this ? > > If not, I imagine I could only do Deploy if I'm on branch Master ? > > Thoughts on how to do either of these two options ? > > Mike > > > > > > -- > 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/31a3041d-f943-4906-aa2c-ebcf9d54025d%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/31a3041d-f943-4906-aa2c-ebcf9d54025d%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/CAMui946-iCDfT7v%2BJ3KYCTVSpMerbM14xbxEf%3DCMQmdXKeE5eg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
