Hello everyone, I've setup an Android-Gradle job on Jenkins, that is triggered by a webhook on GitHub. Now, *I'd like to have the Jenkins run the build only for 'release' commits and not every update. *So decided to condition this by searching the commit's COMMENT for a specific value/string ("release version" for example).
I've searched the web but didn't find similar case.. only a git command that might help reading the comment itself: git log --oneline -1 (where 1 refers to the first line - the comment field/line of the commit) Thought maybe I can search for the 'release' trigger/string in the output of this command and CONDITION the execution of the build accordingly. My question is: Assuming this whole request is applicable (Jenkins checking commit's comments field)- *How do I implement this condition in the build configuration on Jenkins?* Should I use execute shell? If there's a better way to do this - I'd be happy to hear :) Many thanks! -Elad -- 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/d/optout.