Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Sep 26, 2024
1 parent 5ad84bf commit 7889847
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exasol_script_languages_container_ci/lib/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7889847

Please sign in to comment.