feat(ci): add migration rollback and remove duplicate chown in Jenkinsfile

- Save pre-deploy SHA before git pull for automatic rollback
- On migrate failure: git reset + migrate:rollback + reinstall deps + restart
- Remove duplicate chown from Restart Services stage (already in Fix Permissions)
- Clean up .deploy_prev_sha after deploy completes
This commit is contained in:
F4ilji
2026-07-03 09:57:34 +05:00
parent 282d5a7c38
commit 67b9aae961
4 changed files with 27 additions and 71 deletions
+1
View File
@@ -1,5 +1,6 @@
.env
deploy.sh
.deploy_prev_sha
/node_modules
/vendor
/sourcefiles