[AB-XXX] replacing packaged xsd for liquibase with reference

using logging module for db and template deployment
updating deployment container dependencies
This commit is contained in:
Sheldan
2024-02-19 00:18:06 +01:00
parent 59575e0b49
commit 53b0c91360
580 changed files with 1087 additions and 36295 deletions

View File

@@ -1,9 +1,9 @@
import subprocess
import sys
import logging
def deploy_liquibase(folder, change_log_file, liquibase_path, base_path, db_config):
print(f'Deploying liquibase of {change_log_file} in folder {folder}')
logging.info(f'Deploying liquibase of {change_log_file} in folder {folder}')
process_command = [f'{liquibase_path}/liquibase', f'--defaultsFile={change_log_file}', f'--defaultSchemaName={db_config.scheme}', f'--liquibaseSchemaName={db_config.scheme}', f'--liquibaseCatalogName={db_config.scheme}', '--logLevel=info', 'update']
process = subprocess.Popen(process_command,
cwd=f'{base_path}/liquibase-zips/{folder}',
@@ -13,5 +13,5 @@ def deploy_liquibase(folder, change_log_file, liquibase_path, base_path, db_conf
process.communicate()
code = process.returncode
if code != 0:
print("Liquibased deployment failed.")
logging.error("Liquibased deployment failed.")
sys.exit(code)