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

Git notifyCommit polling not triggered with Parameterized Build variable in Repository URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • git-plugin
    • None

      Polling will not trigger when the Git Repository URL has a variable that is set by Parameterized Build plugin.

      Step to reproduce:
      1. Create Freestyle Job
      2. Set "This project is parameterized"
      3. Add String parameter named `PROJECT` with default value of your git project name
      4. Set the Git Repository URL to expand that variable, ex:

       git_user@git.example.com:${PROJECT}.git 

      5. Enable Poll SCM in the Build Triggers with no schedule
      6. Save the project and do a push to the repository

      Results:

      • Expected: job is triggered with default Parameterized Build values
      • Actual: the job is not triggered

      Related:
      https://issues.jenkins-ci.org/browse/JENKINS-26315 (same issue for global variables)
      https://issues.jenkins-ci.org/browse/JENKINS-27692 (github plugin had same issue)
      https://issues.jenkins-ci.org/browse/JENKINS-9686 (mercurial had same issue)

      https://issues.jenkins-ci.org/browse/JENKINS-14276 (branch variable on polling)
      https://issues.jenkins-ci.org/browse/JENKINS-20427 (branch variable on polling)

            Unassigned Unassigned
            lkraider Paul Eipper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: