jenkinsci / ghprb-plugin

github pull requests builder plugin for Jenkins
https://plugins.jenkins.io/ghprb/
MIT License
498 stars 606 forks source link

Not able to trigger jenkins job by adding specific labels #861

Open shubhisingh07 opened 7 months ago

shubhisingh07 commented 7 months ago

Jenkins and plugins versions report

I am trying to trigger a jenkins job by adding a specific label (for eg : "RFJ") to the Github PR. I have configured GitHub Pull Request Builder. And have enabled the options Trigger phrase with value "RFJ" and List of GitHub labels for which the build should only be triggered. (Leave blank for 'any') also has value "RFJ". However the job is only getting triggered if I add a comment phrase "RFJ" and not when RFJ label is added to the PR.

What Operating System are you using (both controller, and any agents involved in the problem)?

MacOS

Reproduction steps

  1. Create a jenkins job.
  2. Configure GitHub Pull Request Builder
  3. Create a webhook for the jenkins job
  4. Raise a PR
  5. Add a label and check if the job gets triggered.

Expected Results

The jenkins job should have been triggered

Actual Results

The jenkins job did not get triggered

Anything else?

No response

Are you interested in contributing a fix?

Yes