in src/com/epam/digital/data/platform/pipelines/stages/impl/dataplatform/CreateSchemaVersionCandidate.groovy [182:198]
private boolean isDataModelChanged(String operationalMasterRegistryDBUrl, String symlinkPath) {
context.logger.info("Check if data-model has been changed or does not exist")
String liquibaseStatus
try {
liquibaseStatus = runLiquibase(changeLogFile: LIQUIBASE_MAIN_SCRIPT,
url: operationalMasterRegistryDBUrl,
contexts: "all,pub,code-review",
dataLoadPath: symlinkPath + "/",
username: context.postgres.regTemplateOwnerRole,
password: context.postgres.regTemplateOwnerRolePass,
"status")
} catch (any) {
context.logger.info("Failed to run liquibase or database not found")
liquibaseStatus = "Failed to run liquibase or database not found"
}
return liquibaseStatus.contains("is up to date") ? false : true
}