title: Jenkins commit a file after successful build
body: <p>I am using Jenkins, Ant , Flex and Java for my web application.
  Currently I update a build version file in Flex src and commit it before starting Jenkins build. 
  I want to avoid this manual process and let script do this for me.</p>
  
  <p>Contents of file:</p>
  
  <p>Build=01_01_2013_10:43<br/>
  Release=2.01</p>
  
  <p><b>Question1:</b>
  I want to update this file contents and compile my code and then commit this file back to svn. So that SVN has latest build version number. </p>
  
  <p>How do I commit this changed file to SVN. Would be great if commit happens after successful build.</p>
  
  <p><b>Question2:</b> I want to send an email to all developers an hour before build starts. "Please commit your changes. Build will start in 1 hr." Can I set up a delay between email and (actual svn export + ant build).<br/>
                               or <br/>
  Do I have to schedule 2 jobs an hour apart. One to send email and one to do build. </p>