title: override build number in Hudson
body: <p>How can I override Hudson build number? It sounds like an easy question, but in fact it is not. </p>
  
  <p>Main main goal is to have the SVN revision number as the build number. So I set the env. var. with appropriate plug in and i have:</p>
  
  <p><code>BUILD_NUMBER = ${SVN_REVISION}.${BUILD_ID}</code>
  <code>BUILD_TAG = ${JOB_NAME}.${BUILD_NUMBER}</code>
  <code>BUILD_NUMBER = ${JOB_URL}.${BUILD_NUMBER}</code></p>
  
  <p>and in Hudson log the BUILD_NUMBER is actully overridden:</p>
  
  <blockquote>
    <p>BUILD_NUMBER = 32.2010-11-19_14-10-48</p>
    
    <p>BUILD_TAG = hudson-FF.Course Management-32.2010-11-19_14-10-48</p>
    
    <p>BUILD_URL = <a href="http://dot-servers:8080/job/FF.Course%20Management/32.2010-11-19_14-10-48" rel="nofollow">http://dot-servers:8080/job/FF.Course%20Management/32.2010-11-19_14-10-48</a></p>
  </blockquote>
  
  <p>but Hudson still uses its own number and claims that the build number is, let's say, 70 and I wanted it to be 32 (as in the above example).</p>