Closed jhedstrom closed 10 years ago
I like this cause it allows us to keep working locally if github is no worky. And, if we are all following the rules and executing rebuild just prior to deploying, the error message should alert us to the issue, no?
Gotta say I probably won't notice the error message. Could we make it a question: "Build failed. Restore from backup? (Y/N)" So if I wandered away during a build it would be obvious that something was wrong?
Yeah. I like the idea of a question too.
Problem with a question is infinite hang time upon failure on Jenkins...i suppose a flag to specify no backup would work for that.
Ok, the script will now prompt prior to restoring. This can be bypassed either using --no-backup
to skip backup entirely, or using --backup
to backup and restore without prompting.
Any remaining concerns on this? Otherwise I'll merge.
What do folks think of adding a backup should the build fail? The dangers here are if somebody doesn't realize the build failed and goes to deploy to production or some such.