I have a Jenkins Job that polls subversion periodically. When the build kicks off I would like the Jenkins job to obtain the SVN Rev # for \"file X\" from the PREVIOUS Jenki
When a job runs for, you have access to SVN_REVISION_1
(for the first SVN URL) as environmental variable. You need to save that as an artifact
On Windows:
echo %SVN_REVISION_1% > myrevfile
On Linux:
echo $SVN_REVISION_1 > myrevfile
At the end of the build, archive this file (you can have other archived artifacts too).
In your next build, you will run a step "Copy Artifacts". In that step, select the same project as current project (can you variables for that), select "latest successful build", and select the artifact you want to copy and the location.
You can't rename the artifact with this step, but you can copy it to some temp location, and rename later with scripts if needed.