Based on the feedback of DevOps engineers, testers, and developers, we’ve identified the functionality needed to boost quality.
- Backup of the existing web application in the UNC shared folder before deployment.
- Clean-up of the IIS virtual application folder to purge the previously deployed artifacts, to avoid any unnecessary side effects.
- Create release manifest (Stage, Release and build number) in the deployment folder.
- View the endpoint details to verify web.config endpoint details as part of the release log.
Steps to Implement the Customization
Let’s get into details of it. Create a PowerShell task and task group implementation of the given below functionality:
- Create release manifest
- View endpoints
In the deployment workflow, add the newly created task group of Backup/Clean-up, etc. task.
Drag the added task in the required sequence listed below:
- IIS Web app deploy
- Generate Release Manifest
- Delete additional files from deployment folder
- Verify config
As part of the deployment process, taking back up of the previously deployed artifacts in a backup location is imperative to support the rollback procedure. In ADO, release pipe back up step is performed as a manual procedure. Each deployment instruction provided by the dev team includes the backup step and DevOps engineer performed manually by remote login, take a copy in a shared location.
With the above backup implementation, release pipe workflow handles the backup as part of the deployment steps.
Deleting the existing binaries from the deployed location is essential to avoid issues with any earlier deployed excess files in the location.
Create release manifest
Release manifest of stage, release number, and build number are required in the deployed binary location:
- To create back up with the correct build and release information.
- Release manifest helps to understand the release information from the deployment location.
From release pipe’s build number and release name using PowerShell-based script able to create the XML based release manifest file.
Web config transformation issues and incorrect endpoints (Ex: Database connection string ) are major issues in the deployment and requires troubleshooting.
To make life easier as part of the deployment step using PowerShell task, retrieve the web.config endpoint and show in the deployment log. This deployment log can be viewed using a browser and easily accessible, necessity to connect the server to review the endpoint is eradicated.
No doubt these four tasks add a lot of value to your deployment routine and increase your effectiveness. With Azure DevOps release platform, it is easy to create your customization.
I hope this gives you an idea about release pipe customization. Please share your feedback or comments if any!