We have a five step build process:
- Build & Unit-Test
- Package for deployment
- Deploy to functional test environment
- Deploy to integration test environment
Steps 2 & 3 are triggered by a fiish build trigger on step 1. Step 4 is triggered by a finish build trigger on step 3, and uses the artifacts generated in 3. Step 5 is manual.
Steps 1 through 3 are maven builds performed on a clean checkout of the head from subversion. Herein lies the problem. If a developer commits during step 1, then steps 2 and 3 will be run against a different revision than step 1. With really bad timing it is possible for steps 1 through 3 to run on different revisions.
Is there a way to carry the revision number from step 1 through the other steps?