title: Jenkins Update xcode app version to Hockeyapp
body: <p>I'm developing a CI (Continuous Integration) for my application.</p>
  
  <p>So, I'm using Jenkins with <a href="http://www.hockeyapp.net" rel="nofollow">HockeyApp</a> (equal to <a href="https://testflightapp.com" rel="nofollow">TestFlyApp</a>).</p>
  
  <p>The problem is that HopckeyApp only accepts new versions of an application if it different versions from the last one added, else it gives me an error of already existing version, and no update.</p>
  
  <p>I was reading about the apple tool <strong>Agvtool</strong> to update the value <strong>CFBundleShortVersionString</strong>.</p>
  
  <p>My main problems are, </p>
  
  <ul>
  <li>how to do this in Jenkins automatically.</li>
  <li>How to update the project repository (Git in my case),for the next build it knowing which is the last version that was updated, or any other option to keep track of the last version updated.</li>
  </ul>
  
  <p>I am trying to do this, but other approach will be accepted has well.</p>
  
  <p>Thanks in advance.</p>