Is it possible that when a job is failing in gitlab ci cd pipeline, then can we revert the environment deployment to previous deployment?
I have below pipeline which has two jobs, first one deploys and second validates the deployment:
If verification fails then i want to revert to previous deployment? probably a new job or some command in “test” job?
- cp -r ./test/* ~/automation/test/
- ./mvnw verify -Dwebdriver.chrome.driver=/home/gitlab-runner/softwares/chromedriver