I think the only way to do that is by using a conditional build step based on the GIT_BRANCH variable. Or might be easier and more readable with the workflow plugin. Cheers Le 23 mars 2015 18:09, "Weston Odom" <[email protected]> a écrit :
> Is it possible to trigger a (maven/sbt) release build when changes are > pushed to the git master branch, but just a snapshot build for all other > tracked branches? I've looked through the project settings of git-plugin > but I haven't found anything that was quite what I'm looking for. > > Thanks! > > -- > 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/26f82309-a7ea-490e-8fd7-4cbb6deb04c1%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/26f82309-a7ea-490e-8fd7-4cbb6deb04c1%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/CANWgJS6WyZyhF9V6LAya%2BVjGDbzhTMeKfrmjz8d5k_MnF33zTg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
