OctopusDeploy / Library

| Public | A repository of step templates and other community-contributed extensions to Octopus Deploy
Other
171 stars 504 forks source link

Adding redeploy template #1525

Closed twerthi closed 5 months ago

twerthi commented 5 months ago

Background

The question about automatically rolling back on failure keeps coming up, so I wrote a template that will re-deploy either the immediately previous release (if it was successful) or the specified version. It also allows for the input of prompted variables or use the values that were used in the last deployment.

Results

Adding this with an on error condition will re-deploy the version.

Before

It didn't exist before. That being said, scrutiny would be appreciated, poke holes in this if it's a bad idea.

After

It will give users an avenue to implement automatic rollbacks in the form of re-deploying a previous release.

Pre-requisites