-
Bug
-
Resolution: Answered
-
Low
-
None
-
5.1, 5.1.1
-
Severity 3 - Minor
-
Steps to reproduce
1. Create subversion repository
svnadmin create /srv/svn/repos/test --fs-type fsfs
2. Checkout to local test computer
3. Create test file
# echo "test" > test.txt # svn ci -m "create" Adding test.txt Transmitting file data . Committed revision 1.
4. Create build plan "Bug test plan"
- Use Subversion repository (give URL etc.)
- Use Manual trigger
- Configure tasks: Source Code Checkout (already setup), Save
- Select "Enable plan" and create
5. Run plan and view build log:
Updating source code to revision: 1
6. Change test file on local test computer
# echo "test2" > test.txt # svn ci -m "change 1" Sending test.txt Transmitting file data . Committed revision 2.
7. Run plan and view build log:
Updating source code to revision: 2
Code commits are correctly showing changeset 2, so it works if the changes are made before the Bamboo build plan runs.
8. Create stage "Merge" and drag it above "Default Stage" in configuration
- Create job "Merge test" in stage "Merge"
- Configure job "Merge test":
- Remove "Source Code Checkout" task
- Add task of type "Command"
- Add new executable "merge_test"
- Create file with following content locally on Bamboo server:
#!/bin/bash svn cp -m "change 2" https://path/to/svn/repos/test/test.txt https://path/to/svn/repos/test/test2.txt
- Save task
9. Run plan and view build log:
- Stage "Merge":
Committed revision 3.
- Stage "Default Stage"
Updating source code to revision: 2
-> This is WRONG and changeset 3 is missing in tab "Code Commits".
10. Go to Bamboo build plan directory
# svn info Revision: 2 Last Changed Rev: 2
11. Update code on local test computer
# svn up A test2.txt Updated to revision 3.