Still playing around with this... something just occurred to me, which is pretty obvious really.
The staging of the package occurs first for both targets, then they each go onto the commit. Once the first commit completes successfully, it removes the staged data, so when the second commit goes to run, the stuff it thought it had staged was removed by the first commit. I'm going to try setting a different STAGE_DIR property for each alias and see how that goes...
Yep, that'll be it then...
I've just set the STAGING_DIR property to be /tmp/stage/??NAME?? and that seems to have solved the problem!
there's a couple other ways to approach this that may or may not work for you, though your way should work fine:
1 - open a ticket w/ support and tell them you want to be able to deploy to components - this will not fix your problem right now, but it's what we need long term. (1 component would exist for each instance of your appserver)
2 - there's a 'single job mode' i think in the deploys - this might help, though i'm not sure if the aliases will fake it out or not.
3 - you could do this using local properties on the blpackage that has property instance for each appserver instance, and then multiple deploy jobs, 1 w/ each instance property pre-selected.
the only problem i could see w/ your way (and any of them really) would be if you had some action in the package that affected another deploy - like 2 instances are using the same config file w/ different values and 1 package writes its values, the 2nd writes its values - some kind of conflict
Thanks for the input Bill. I'd tried the "single job mode" option, but because the staging still occurs at the same time and the first successful commit wipes out the previously staged data for the second commit target and then it fails.
I'd also considered a deploy job per target and setting properties accordingly, but that was a lot of overhead for our software release teams to have to deal with.
I think you're right though, the way forward would be to be able to release to Components.