Awesome.

Thanks !

Mike

On 16-05-13 09:21 AM, Nigel Magnay wrote:
What we do is look at what the branch name is in the Jenkinsfile itself.

I.E:

if( branchName.equals("master") )
{
   // deployment steps
}

On Fri, May 13, 2016 at 12:24 AM, Mike Caspar <[email protected] <mailto:[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]
    <mailto:[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 a topic in the Google Groups "Jenkins Users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/4RQrbzi01II/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPYP83Q4ND6Dt4V_9yKAyCgcNO5rP1mDeWwDNa8%3DfnP9obozbg%40mail.gmail.com <https://groups.google.com/d/msgid/jenkinsci-users/CAPYP83Q4ND6Dt4V_9yKAyCgcNO5rP1mDeWwDNa8%3DfnP9obozbg%40mail.gmail.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/5735D57D.2000408%40caspar.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to