title: Git poll setup for Jenkins groovy (scripted) pipeline
body: <p>I'm trying to setup GIT poll for groovy pipeline. Scripted, not declarative</p>
  
  <pre><code>git branch: '${Branch}',
      credentialsId: 'some.key.ssh',
      poll: true,
      url: "ssh://git@bitbucket-ssh.company.com/project-${env.Project}.git"
  </code></pre>
  
  <p><em>Git Branch is set from parameters</em>: <a href="https://i.stack.imgur.com/THrxs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/THrxs.png" alt="Parameterized Builds for Jenkins"></a>
  <em>Poll SCM is set to:</em> * * * * *
  <a href="https://i.stack.imgur.com/g53bV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g53bV.png" alt="Poll config"></a></p>
  
  <p>I see that polling works - but it can't get anything - it doesn't trigger build
  <a href="https://i.stack.imgur.com/aUyhJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aUyhJ.png" alt="Poll log"></a></p>
  
  <p>So the question is - is there a way to fix that?
  Please don't suggest webhooks - I can't use that. Only <strong>Poll SCM</strong></p>