So, perhaps you can do it within jenkins. - Method 1: Use two jobs. The first one is triggered by a git post commit hook. It looks at the git log and exits if the author or message matches a pattern. Otherwise it triggers the second real build job.
- Method 2: Not sure if this will work. a) use a pre-scm build step to detect if author/message matches b) conditional build step that exits if there was a match. I'm not sure how to stop the job sucessfully. Perhaps a groovy script.