Search code examples
gitjenkinsjenkins-plugins

Jenkins Git pull request ${sha1}


I've configured Jenkins git pull request plugin according to docs: https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin but build returns to me

ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

If I leave "Branch Specifier" empty, Jenkinks goes through every PR (even closed) in my repo. How to force it to build only open PR?


Solution

  • I've set this up and is working perfectly. Here are my settings: enter image description here

    And the ghpr plugin settings is completely empty apart from these 2 fields

    enter image description here

    Hope this helps