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

Git SCM-polling doesn't work when using a parametrized branch-name

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

      Setup:

      • Git Plugin 1.1.20
      • a parameterized build with parameter "Branch", default "**"
      • Git SCM with branch specifier "${Branch}"
      • SCM polling activated

      Intended behaviour:

      • if any branch changes, Jenkins checks out and builds this branch
      • when executed manually, the user enters the name of the branch to be built

      Actual behaviour:

      • no changes are detected (because the "${Branch}" value isn't resolved when polling)

          [JENKINS-14276] Git SCM-polling doesn't work when using a parametrized branch-name

          Martin E created issue -
          Martin E made changes -
          Attachment New: JENKINS-14276.patch [ 22068 ]
          Martin E made changes -
          Description Original: Setup:
          - Git Plugin 1.1.20
          - a parameterized build with parameter "Branch", default "**"
          - Git SCM with branch specifier "${Branch}"
          - SCM polling activated

          Intended behaviour:
          - if _any_ branch changes, Jenkins checkous out and builds this branch
          - when executed manually, the user enters the name of the branch to be built

          Actual behaviour:
          - no changes are detected (brcause the "${Branch}" value isn't resolved when polling)

          New: Setup:
          - Git Plugin 1.1.20
          - a parameterized build with parameter "Branch", default "**"
          - Git SCM with branch specifier "$\{Branch\}"
          - SCM polling activated

          Intended behaviour:
          - if _any_ branch changes, Jenkins checks out and builds this branch
          - when executed manually, the user enters the name of the branch to be built

          Actual behaviour:
          - no changes are detected (because the "$\{Branch\}" value isn't resolved when polling)
          Nicolas De Loof made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          aaronlab made changes -
          Resolution Original: Won't Fix [ 2 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Mark Waite made changes -
          Status Original: Reopened [ 4 ] New: Open [ 1 ]
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Kristofer Lundgren made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Mark Waite [ markewaite ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            markewaite Mark Waite
            martoe Martin E
            Votes:
            12 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: