<p>Assume that I set up an <a href="https://stackoverflow.com/questions/204603/nightly-builds-why-should-i-do-it">automatic nightly build</a>.  What artifacts of the build should I save?</p>

<p>For example:</p>

<ul>
<li>Input source code</li>
<li>output binaries</li>
</ul>

<p>Also, how long should I save them, and where?</p>

<p>Do your answers change if I do Continuous Integration?  </p>

We save the binaries, stripped and unstripped (so we have the exactly same binary, once with and once without debug symbols). Further we build everything twice, once with debug output enabled and once without (again, stripped and unstripped, so every build result in 4 binaries). The build is stored to a directory according to SVN revision number. That way we can always retain the source from the SVN repository by simply checking out this very revision (that way the source is archived as well).