How to achieve Roll back using Jenkins How to achieve Roll back using Jenkins jenkins jenkins

How to achieve Roll back using Jenkins


Generally you can achieve this in 2 ways:

  1. Setting up some sort of release management tool that tracks every execution of your pipeline and snapshots the variables, artifacts, etc... that was used on that exact execution, then you can just run an earlier release of it (check tools like octopus deploy)

  2. If you are using a branch strategy with tags you can parameterize your jobs, passing the tag you wanna build, and build the "earlier tag" if something fails. Check the rebuild option for older job executions.