Expand my Community achievements bar.

SOLVED

How to rollback production deployment in case of build failure

Avatar

Level 5

Hi Team,

 

How to rollback to stable build incase of build failure in prod deployment pipeline?

 

Thanks

 

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi,

 

If this is AEM as a Cloud Service environment, then you can raise a support ticket to get the production environment rolled back. For more information you can follow the below document:

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/backup.h...

 

One more option is you can revert your branch to a stable code version and then deploy the pipeline again.

View solution in original post

5 Replies

Avatar

Employee Advisor

HI @aem-enthu27 ,

Are you referring to AEM as cloud service?

If so, there is no rollback needed if the deployment fails. If the deployment is successful, then only your newly created AEM instance is exposed and replaced with the old one, If the build fails, you system is already in place which is the previous stable version. No need to do anything to stabilize the instance. About the code, you will have to revert the changes to prod branch in order to have environment and code in sync.

Avatar

Level 5

So if build fails bcz of any reason, site will not be down as it is not yet deployed. But after successfull deployment if you feel build is not stable and some of the functionalities are not working propeerly then we can go for rollback. Is my understanding correct?

Avatar

Employee Advisor

Yes. That is the exact use case here. However, stage and prod are identical servers, so if any changes are pushed, you can keep it on stage verify it completely and then promote. If you still need to roll back, you have to raise Adobe ticket. Please find the details here - https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/backup.h...

 

 

  

Avatar

Correct answer by
Level 2

Hi,

 

If this is AEM as a Cloud Service environment, then you can raise a support ticket to get the production environment rolled back. For more information you can follow the below document:

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/backup.h...

 

One more option is you can revert your branch to a stable code version and then deploy the pipeline again.

Avatar

Level 2

Hi,

If you are doing deployment manually or CM pipeline there is no automate to revert the code. Usually as part of deployment plan , will take the back up. if you are through CM Pipeline back up will took by pipeline automatically.

If the build is failed. Have to roll back the backup package to reinstall.