I am not stowing on the mainframe anymore (upload and stow=no in deploy.xml) until I can be 100% certain the problem will not occur again (hence why I have asked for an incremental failsafe property to be added in the next release / update below).
Proposed property / “incremental deploy failsafe property”: e.g. -pMaxModules=x
I proposed adding a new property to the ant execution to backout and throw an exception as I thought a limiting parameter would be useful for ‘incremental’ deploys in a “worst case scenario” if it identifies more changes than intended / tries to stow more than a set property limit.
Every time this problem occurs, I have to run a job to restore from a database backup for every single module which should not have been stowed - sometimes over 20,000 modules.
e.g. as an ant run property -pMaxModules=25 or something would be extremely helpful and a failsafe if more than x modules change (or whatever number specified) abort the run