This repo shows Azure Pipelines and Releases for working
There is one pipeline:
- CI pipeline --> azure-pipelines-ci.yml
CI pipeline is run as part of new PR validation for changes merging from dev branch to release branch. This pipeline executes liquibase checks run on incoming changes.
There are two release pipelines created: One pipeline to perform update operation and another pipeline to perform rollback operation.
- Code for
updateoperation is shown in update.cmd - Code for
rollbackoperation is shown in rollback.cmd
Note about releases:
- Stages: Create parallel stages for each pipeline to
updateorrollbackchanges to all QA databases - Variables: Define variable groups for each environment. For example, a variable group called
QA1to be linked to a stage which deploys to QA1 database.
All information about QA databases is stored in Azure Pipeline library as a variable group Liquibase_Variables. It includes connection information such as database URLs, usernames, passwords, etc.
Liquibase properties are stored in Azure Pipeline library as a variable group Liquibase_Variables. For example, Liquibase Pro license keys are stored here.