title: Jenkins not calculating BUILDS_ALL_TIME correctly
body: <p>Our Jenkins instance is currently reporting BUILDS_ALL_TIME to be 999 for all builds of all jobs.  Has anyone else experienced this and understand the path of least resistance to getting it to handle this environment variable as expected?</p>
  
  <p>The back story:
  Yesterday morning I updated all of the plugins on our Jenkins instance to the latest stable version.  There were half a dozen or more plugins to be updated and I never pay close attention to them but the <a href="https://plugins.jenkins.io/credentials-binding/" rel="nofollow noreferrer">Credentials Binding plugin</a> stuck out because it turned my monitor red regarding a critical security update and kicked off the whole process. </p>
  
  <p>Yesterday afternoon, my coworker noted that the version number of one of his builds went from 1.0.0.7 to 1.0.0.999 and I was able to confirm the same thing with one of mine.  Now all jobs that rely on the <code>BUILDS_ALL_TIME</code> environment variable report <code>999</code> for that variable in every build.</p>
  
  <p>The <a href="https://plugins.jenkins.io/versionnumber/" rel="nofollow noreferrer">Version Number Plugin</a> is installed &amp; up to date, and here's an excerpt from build.xml from an affected build:</p>
  
  <pre><code>&lt;org.jvnet.hudson.tools.versionnumber.VersionNumberAction plugin="versionnumber@1.9"&gt;
    &lt;info&gt;
      &lt;buildsToday&gt;34&lt;/buildsToday&gt;
      &lt;buildsThisWeek&gt;40&lt;/buildsThisWeek&gt;
      &lt;buildsThisMonth&gt;40&lt;/buildsThisMonth&gt;
      &lt;buildsThisYear&gt;40&lt;/buildsThisYear&gt;
      &lt;buildsAllTime&gt;24&lt;/buildsAllTime&gt;  &lt;!-- This is correct, is incremented properly between builds, and is updated appropriately when overridden in the job configuration GUI --&gt;
    &lt;/info&gt;
    &lt;versionNumber&gt;999.0.0&lt;/versionNumber&gt;  &lt;!-- This is incorrect and NOT incremented properly between builds --&gt;
  &lt;/org.jvnet.hudson.tools.versionnumber.VersionNumberAction&gt;
  </code></pre>
  
  <p>The timing of this behavior seems to be associated with an upgrade to plugins (this association is by no means certain but it's the best I've got at this point).  Consequently I tried downgrading each plugin with that option available in the management GUI, one-by-painful-one, to see if I can find the one culprit.  This was fruitless.  I'm not given the option to downgrade the Version Number plugin, but the last release of this thing was two years ago.</p>