Current job artifacts are always "Previous Artifacts"

Hi,

I created a build job (in a self-hosted gitlab community edition v12.8.6) that creates build artifacts. It seems to work fine so far. The only weird thing is, in the download popup menu, the download link is always in the “Previous Artifacts” category and there is no “Artifacts” category at all. This is the same for every commit.

gitlab_prev_artifacts

The .gitlab-ci.yml section that creates these artifacts is the following:

build_default:
    stage: build
    except: [ tags ]
    script:
        - make -f Makefile
    artifacts:
        when: on_success
        expire_in: 42 weeks
        name: "foo_$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA"
        paths:
            - build/*.bin
            - build/*.hex

Does anyone have an idea what could cause this?

Thanks and regards
Frederik