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

Git SCM web hook not triggering builds for branches that contain a forward slash '/'

XMLWordPrintable

      Original reporter https://github.com/jpeletier

      Hi,

      First of all, thank you for this great plug-in

      I have configured the multi-branch plug-in with my Stash Git repository with the following relevant parameters:

      • Sync Branches Schedule: H/5 * * * *
      • [x] Allow anonymous trigger of branch sync
      • Git
      • Include Branches * (a * wildcard)
      • Exclude Branches <empty>

      I have configured Stash Git to trigger Jenkins every time a push is made to the repository, and it works. However, when the branch name contains a forward slash, such as "feature/new-cool-feature", the hook is ignored and the branch is not built. If I click the "Schedule Build", the build is scheduled and runs fine. So it is just the trigger that it is not working.

      I have read the plug-in has some issues with / in the names, but the issues described don't seem to match what is happening to us. My one and oly problem is the trigger coming from Stash being ignored.

      Does anybody know of a workaround?

      Thanks!
      /jpeletier

            mjdetullio Matthew DeTullio
            mjdetullio Matthew DeTullio
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: