Skip to content

Epinova/epinova-dxp-deployment

Repository files navigation

Epinova DXP Deployment

Bucket of release tasks helping you to deploy to all environments in Optimizely (formerly known as Episerver) DXP (a.k.a DXC) from Azure DevOps. The release tasks use the Deployment API. There are some developers out there that want/need help with deployment to the Optimizely (formerly known as Episerver) DXP enviroment. And that is why this deployment extension is created.

Now cross platform support. v2 of tasks support Windows/Ubuntu/MacOS.

Install

How to install Epinova DXP Deployment extension
In short: Install the extension to your Azure DevOps project: https://marketplace.visualstudio.com/items?itemName=epinova-sweden.epinova-dxp-deploy-extension. Click on the green "Get it free" button and follow the instructions.
Microsoft has general information on how to install an Azure DevOps extension: https://docs.microsoft.com/en-us/azure/devops/marketplace/install-extension
In the end of that page, there also a link to how to manage extension permission. https://docs.microsoft.com/en-us/azure/devops/marketplace/how-to/grant-permissions

Tasks

Deploy NuGet package (Optimizely DXP)

Take a NuGet package from your drop folder in Azure DevOps and upload it to your Optimizely (formerly known as Episerver) DXP project and start a deployment to the specified environment.
Deploy NuGet package documentation

Deploy To (Optimizely DXP)

Do the same thing like the "Deploy to =>" button in the portal. It moves the deployed code from one environment to another.
Can also be used for Content copy during deployment. With the IncludeBlob and IncludeDb you can now sync/deploy both ways.
Also support Zero Downtime Deployment (aka ZDD or Smooth deployment).
Deploy to documentation

Deploy Smooth To (Optimizely DXP)

Deprecated! You should stop using this task DeploySmoothTo. You should change to DeployTo.
Do the same thing as the "Deploy to" task. But this has support for Smooth deployment (Zero downtime deployment).
This task was created during the closed beta. There was not everybody that could use this feature. That is why this is like a copy past of the "Deploy To" task but with smooth deployment support.
Now when this feature is public for all DXP users, it is implemented in to the "Deploy to" task.
Deploy smooth to documentation

Content copy (Optimizely DXP)

Copy content database and/or blobs between your environments.
Content copy documentation
Example how to use Content copy

Complete deploy (Optimizely DXP)

Both "Deploy nuget package (Optimizely DXP)" and "Move deploy (Optimizely DXP)" tasks deploy a package to a environment. That will deploy the package to a slot. The task "Complete deploy (Optimizely DXP)" will complete the deploy and move the packe from slot to the real environment.
Complete deploy documentation

Smoke test if fail reset (Optimizely DXP)

This task smoke test a slot and decide if we should continue the release or reset the environment slot because something is not working as expected. The smoke test is a simple check if one or many specified URLs returns HTTPStatus = 200 (OK).
Smoke test if fail reset documentation

Reset deploy (Optimizely DXP)

Reset a specifed environment if the status for the environment is in status "AwaitingVerification".
Reset deploy documentation

Export DB (Optimizely DXP)

Export database as a bacpac file from specified environment.
Export DB documentation

Await status (Optimizely DXP)

Task that await for status AwaitingVerification/Reset. Can be used when have a release setup that often timeout and need a extra task that verify correct status. If status is AwaitingVerification/Reset/Succeeded, nothing will happen.
Await status documentation

Expect status (Optimizely DXP)

Task that check the status for an environment. if environment is not in the expected status the task will fail.
Expect status documentation

Setup scenarios

More detailed description how you can setup and use these tasks in different scenarios. Both with YAML and manual setup.
Setup senarios
Example how to setup content harmonization between DXP environments

Problems

A collection of problems that has been found and how to fix it.
Problems

Release notes

Release notes

Epinova.OptimizelyDxp.Pipelines Nuget - YML examples

We have set togheter a number of YML examples that you can use in your projects to fast get your project deployed to DXP. Epinova.OptimizelyDxp.Pipelines documentation

Epinova.OptimizelyDxp.Pipelines Nuget