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

Branches get triggered for polling when we don't want them to

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Critical Critical
    • git-plugin
    • None
    • Jenkins Server: 1.5.10
      Git plugin: 1.3.0

      So what I am hoping to do is to prevent polling from happening on any branch besides the one that was changed. I thought by having the "branches=branch2" for example would trigger the plugin to only schedule a polling of that branch. The reason for this functionality is that we need certain users to be able to commit without triggering a build such as admin work/upper level scripts which don't impact our product. Even if I abort a build the next time someone pushes, the force polling will build that branch even though the push wasn't for that specific branch.

      Below you can see the output of what command we push, I would expect branch2 to kick off a poll but no other branch to do that.

      remote: branch=branch2, user=peter_kline, repo=flt/root

      remote: Running command: curl http://jenkins:8080/git/notifyCommit?url=git@gitserver:flt/root.git&branches=branch2

      remote: Scheduled polling of branch1
      remote: Scheduled polling of branch2
      remote: Scheduled polling of branch3
      remote: Scheduled polling of branch4
      remote: Scheduled polling of branch5
      remote: Scheduled polling of branch6
      remote: Scheduled polling of branch7
      remote: Scheduled polling of branch8
      remote: Scheduled polling of branch9
      remote: Scheduled polling of branch10
      remote: Scheduled polling of branch11
      remote: Scheduled polling of branch12
      remote: Scheduled polling of branch13
      remote: Scheduled polling of branch14
      To git@gitserver:flt/root.git
      9607b14..1daed8c branch2 -> branch2

            Unassigned Unassigned
            peter_kline Peter Kline
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: