On Tue, Feb 26, 2013 at 05:40:58AM -0800, Patrick wrote: > 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?
It's not what you asked for but it might also suit your case. On our team each project has it's own abbreviation and each ticket/issue has a number. Each branch we create contains project-abbreviation-issue-number. So for example we have XYZ-34 as branch. We only want to build branches that start with XYZ-. So in the git plugin we define XYZ-** as the branches we want to build. It doesn't check the commit message but you could use the branch name instead of the commit message to decide on building or not. Jonas. -- 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.