This is a Jenkins 101 question... I'm writing a Jenkins Promotion script which copies files from my workspace to a git repository. Currently my promotion process isn't doing a rebuild. My question is how does Jenkins manage the workspace? If I have two builds in Jenkins build #1 and build #2. Assuming build #2 was done last, if I go to promote build #1 will the workspace have build #2 files in it or will Jenkins somehow switch back to the workspace from build #1 (with my build artifacts still intact from the build step).
So the question boils down to whether Jenkins does some magic to make this work for me or if this is something I need to handle myself.