If you use the GitHub branch source plugin, the pull request number will show up in the $BRANCH variable. I suggest using this plugin as it will automatically create jobs and build every branch and PR.
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f9e47282-1bac-427f-985e-4ab225d5cc29%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.