Thanks for reply! Sure, the decision to reject all incorrect commits is pretty hard. I was just interested in what is possible with jenkins…
Tanks! On Tuesday, February 26, 2013 3:16:01 PM UTC+1, Mark Waite wrote: > > If you want to reject a Git commit if it does not have certain text, you > should probably refer to the Git hooks documentation to understand how to > implement a Git hook on the Git SCM rather than using Jenkins to guard > against incorrect commits. Most Git books will also describe the > limitations and the risks associated with that decision. > > Mark Waite > > > ------------------------------ > *From:* Patrick <finkbeine...@googlemail.com <javascript:>> > *To:* jenkins...@googlegroups.com <javascript:> > *Sent:* Tuesday, February 26, 2013 6:40 AM > *Subject:* Check GIT commit messages. > > Hey Guys i am very new to this whole jenkins thing. > Currently i've added a jshint check to every new commit and it works > pretty well so i want to let check jenkins much more… > > Im trying so check for the commit messages itself. Is it possible to check > if the commit message begins with a specific string? > And if it fails, reject the whole commit? > > Thanks in advance! > -- > 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-use...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- 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. For more options, visit https://groups.google.com/groups/opt_out.