in src/com/epam/digital/data/platform/pipelines/stages/impl/dataplatform/CreateSchemaVersionCandidate.groovy [147:180]
private void runUpdateLiquibase(String operationalMasterRegistryDBUrl, String registryVersion, String dataLoadPath, String symlinkPath) {
context.logger.info("Run pre-deploy script on operational-instance")
runLiquibase(changeLogFile: LIQUIBASE_PRE_DEPLOY_SCRIPT,
url: operationalMasterRegistryDBUrl,
dbName: "registry_dev_${context.script.env.GERRIT_CHANGE_NUMBER}",
contexts: "all,pub",
regVersion: registryVersion,
dataLoadPath: symlinkPath + "/",
username: context.postgres.regTemplateOwnerRole,
password: context.postgres.regTemplateOwnerRolePass,
"update")
context.logger.info("Run main-deploy script on operational-instance")
runLiquibase(changeLogFile: LIQUIBASE_MAIN_SCRIPT,
url: operationalMasterRegistryDBUrl,
contexts: "all,pub,code-review",
dataLoadPath: symlinkPath + "/",
username: context.postgres.regTemplateOwnerRole,
password: context.postgres.regTemplateOwnerRolePass,
"update")
context.logger.info("Run post-deploy script on operational-instance")
runLiquibase(changeLogFile: LIQUIBASE_POST_DEPLOY_SCRIPT,
url: operationalMasterRegistryDBUrl,
contexts: "all,pub",
dbName: "registry_dev_${context.script.env.GERRIT_CHANGE_NUMBER}",
regVersion: registryVersion,
dataLoadPath: symlinkPath + "/",
username: context.postgres.regTemplateOwnerRole,
password: context.postgres.regTemplateOwnerRolePass,
"update")
removeDataLoadFiles(dataLoadPath, symlinkPath)
}