title: Jenkins: Repetitive Git Polled Builds (Docker Containers)
body: <p>Linux build system.
  Jenkins 2.73.2 (jenkins/jenkins:lts Docker image) Git Plugin 3.6.2</p>
  
  <p>Pretty basic setup:</p>
  
  <ul>
  <li>Restrict where this project can be run (set to name of Docker container upon which builds occur).</li>
  <li>Branches to build: Branch Specifier: "**"</li>
  <li>Additional Behaviors: Advanced clone behaviors: not fetching tags</li>
  <li>Poll PCM: "H/5 * * * *" (Bitbucket can't reach this server over the network to trigger on Git push)</li>
  </ul>
  
  <p>Git Polling Log simply says "changes found":</p>
  
  <pre><code>Started on Oct 27, 2017 2:18:58 AM
  Polling SCM changes on [node_unavailable]
  Using strategy: Default
  [poll] Last Built Revision: Revision adaec1b1c0e4b83dab922eeb490b2f09a4839d30 (origin/EGN-1489)
  Done. Took 1 ms
  Changes found
  </code></pre>
  
  <p>Every five minutes this constantly triggers the same build.</p>
  
  <pre><code>GIT_BRANCH=origin/EGN-1489
  GIT_COMMIT=adaec1b1c0e4b83dab922eeb490b2f09a4839d30
  GIT_PREVIOUS_COMMIT=adaec1b1c0e4b83dab922eeb490b2f09a4839d30
  GIT_PREVIOUS_SUCCESSFUL_COMMIT=adaec1b1c0e4b83dab922eeb490b2f09a4839d30
  </code></pre>
  
  <p>In reading about possible solutions, I tried "Wipe out repository &amp; force clone" option and "Force polling using workspace" option but neither those nor anything else I've tried seems to be working. I also don't have any post-commit hooks or anything special like that.</p>
  
  <p>I'd think this was a pretty basic setup except that it's simply not working. If I bind the Branch Specifier to something like "refs/heads/master" and only poll on one branch it works fine. It's not until I'm trying to build against any commit on any branch that things go haywire.</p>
  
  <p>Thoughts?</p>