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

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

    • 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)

          [JENKINS-37533] Git notifyCommit polling not triggered with Parameterized Build variable in Repository URL

          Paul Eipper created issue -
          Paul Eipper made changes -
          Description Original: 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)
          New: 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: {code} git_user@git.example.com:${PROJECT}.git {code}
          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)
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Michael Fowler made changes -
          Link New: This issue duplicates JENKINS-21886 [ JENKINS-21886 ]
          Michael Fowler made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: