'Jenkins do not run test through GitHub hooks

I have Jenkins job configuration where I have a Trigger phrase set to: .*jenkins:\W+run\W+tests\W+sanity.* and I have PR from this repo where I'm adding comment jenkins: run tests sanity and nothing is happening. I do not know what is missing. I was actually copied all configuration from the job which also operating on GH hooks. Any ideas what else I should check?



Solution 1:[1]

I've managed to run this finally. You need to set both of these options to true:

  • Only use trigger phrase for build triggering
  • Build every pull request automatically without asking (Dangerous!)

Now it is working when I run it manually from the PR, using jenkins: run tests sanity.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jeremy Caney