From 78898473ef4c91d54d6af542c17686b400dca570 Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Thu, 26 Sep 2024 05:40:03 -0300 Subject: [PATCH] Test --- exasol_script_languages_container_ci/lib/ci.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exasol_script_languages_container_ci/lib/ci.py b/exasol_script_languages_container_ci/lib/ci.py index 329d4fb..4c52650 100644 --- a/exasol_script_languages_container_ci/lib/ci.py +++ b/exasol_script_languages_container_ci/lib/ci.py @@ -23,10 +23,13 @@ def get_all_affected_files(git_access: GitAccess, base_branch: str) -> Set[str]: def check_if_need_to_build(branch_name: str, config: Config, flavor: str, git_access: GitAccess): if BranchConfig.build_always(branch_name): + logging.warning("Build always!!!") return True if "[rebuild]" in git_access.get_last_commit_message(): + logging.warning("Rebuild!!!") return True affected_files = list(get_all_affected_files(git_access, config.build.base_branch)) + logging.warning(f"Affected files: '{affected_files}'") logging.debug(f"check_if_need_to_build: Found files of last commits: {affected_files}") for ignore_path in config.build.ignore.paths: affected_files = list(filter(lambda file: not file.startswith(ignore_path), affected_files))