You can use the variable ENV.BRANCH_NAME to determine this
6. mai 2016 10:15 p.m. skrev "Mike Caspar" <mikecanbefo...@gmail.com>:

>
> In a multi-branch scenario, are there some examples anywhere of how to
> make sure the deploy happens only from the master branch?
>
> I am guessing I need to build an if statement of some sort in groovy to
> confirm which branch I am on?
>
> Thanks for any help.
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c272c631-ddb3-4f68-8f60-13c8a8ed067d%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/c272c631-ddb3-4f68-8f60-13c8a8ed067d%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/CAGO7Ob2dyCnb118vOMEF9yH14UtW3JWradJO0Yaybw0UHPM9SA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to