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 <finkbeiner.patr...@googlemail.com>
>To: jenkinsci-users@googlegroups.com 
>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-users+unsubscr...@googlegroups.com.
>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.


Reply via email to