I use Bamboo CI to continuously build and push my app to the CF. On every deployment i want to drop, migrate and seed my database.
If there are more than one instance the build sometimes fails, because Instance A tries to seed, when Instance B just dropped the database which obviously results in an error. The more instances the more likely it is that it fails.
I tried to create a "Cloud Foundry Task" Job in Bamboo, but it says that this job type is experimental and it throws an "Unkown Cloud Foundry Exception".
Is there another way to execute a script for only one instance or am I doing something wrong in bamboo?