Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67946

Github Branch plugin not triggering create/build events from forked repos from github.com EMU due to _ in usernames

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • Jenkins 2.319.3
      Plugin version: 2.11.x
    • github-branch-source-plugin:1696.v3a_7603564d04

      I'm running into a weird issue with forked repos and PRs being created from them.

      This functionality works fine in a Github Enterprise, Github Organization job, with webhooks in each repo we want to monitor changes from.

      We've recently moved to using Github EMU (Enterprise Managed User) accounts instead.

      In the Github Enterprise setup, the repos are all marked as 'private'.

      In the Github EMU setup, the repos are all marked as 'private'

      In the Github EMU environment:

      If I create a PR from a branch off the origin repo (the only repo), the plugin triggers builds on Jenkins and all is well.

      If I create a PR from a branch from a forked repo, the plugin indicates it sees the events, but no action is triggered, it does not create the PR job, nor build.

      It is seeing actions however as the Org level folder events show that the webhook events are passing though.

      I have created a PAT (personal access token) that has all permissions  available, full admin to ensure no permission issues.

      Does Github EMU have some difference that might break the plugin on events?

      It's not clear to me whats wrong, since Github EMU is supposed to be transparent API as with regular  github.com non-enterprise users

      Update: this is due to '_' in username for Github EMU, the plugin user regexp doesn't check for this and silently fails.

            rkivisto Ray Kivisto
            spstarr Shawn Starr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: