Commit cdcb9078 authored by Jan Kiene's avatar Jan Kiene
Browse files

Merge branch 'ci/fix-compelxity-artifact-collection' into 'main'

[CI] check for complexity artifact folder not being empty

See merge request !2010
parents e0a9007c 62754613
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2409,7 +2409,9 @@ coverage-test-on-main-scheduled:
  - public_dir="$CI_JOB_NAME-public"

  # if is needed to catch case when no artifact is there (first run), similarly as above
  - if [[ -d $public_dir ]]; then
  # 1. check for public_dir being there as this might not be the case when artifact download failed
  # 2. check for public dir not being empty - handle job failures in prev job that happen after the dir is created. In that case, the empty dir is in the artifacts
  - if [ -d $public_dir ] && [ ! -z "$( ls -A $public_dir )" ]; then
  -   mv $public_dir/* wmops/
  # check here if we have the split-by-levels files present - if not, fake them up with the existing global one
  # this is needed for the first run with split graphs on a branch where the global version did run previously