title: How to avoid Jenkins triggering on git commands within Jenkinsfile
body: <p>Jenkins triggers whenever I push onto my remote branch. A pipeline is then run using my Jenkinsfile script. </p>
  
  <p>Within the jenkinsfile I git push tags, this command however triggers Jenkins again and kicks off another build, which then in turn runs git push tags causing an infinite loop. </p>
  
  <p>How can I avoid jenkins triggering on git commands within jenkinsfile?<br>
  I have spent over a week searching for a solution and nothing seems to be working, thank you.</p>