We have a build project that has for jobs in 2 stages.
checkout source and build and check in website code (ie, build 2.00.00.052 is checked in)
2. checkout source and build and check in db migration updates (ie, migration script folder 2.00.00.052 is checked in
pull down the build 2.00.00.052 via nant and deploy to QA web servers
2. pull down the repository that holds all migration scripts (ie, 2.00.00.049, .050, .051, and suppose to be new .052)
apply the appropriate migration scripts to qa in order (.49, .50, .51 and the supposed to be .052)
Our problem is that it appears like the repositories for deploy stage step 2 do not contain the new checked in migration scripts created in stage 1, step 2.
Its almost like the repositories are pulled down for all stages, before the stages actually run.
Is this a true statement?
how do we force bamboo to pull the repositories just before the job runs like it is configured?
Here's what I do that sounds similar to what you want.
I generate an artifact in my build and use deployment plans. The artifact(s) can contain anything you want since you generate the file. You could create the file with the build number. Then your deployment will have that artifact available which you can read programmatically or pass in as an input to a script.
My understanding of the checkout source task across multiple stages in the same plan is that bamboo guarantees each source checkout of the same repo will use the same sha1 (or version).
I would recommend if you need the version of source to be different, then create your second stage as a dependent build plan so that is runs as a separate plan, rather than a second stage in the first plan.
Alternatively, you can add a command or inline script after the sourcecode checkout to run your update to pick up the checkins from the first stage.
Heather, thanks for responding, I dont mind doing that but how do I transfer the build number that we are using from the first build (eg, 2.00.00.052) to the dependent project as a variable deploy.buildnumber?
Any thoughts on that?
We originally had separate plans but couldnt get the build number from one plan to the other.
Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs