Stale artifacts

Describe your question in as much detail as possible:
Our team is using self-hosted GitLab instance. We have a pipeline, in which we have build and sign stages.
Our jobs use similar naming for artifacts, because we are building for Windows and macOS. Example artifact name test-win, test-darwin. We have used test-* glob as setting for artifacts path.

We are using dependencies in the sign jobs, which should tell which dependencies to use. Our sign jobs have GIT_STRATEGY: none.
Example: sign-mac has a dependency on build-mac and respectively sign-windows has a dependency on build-windows.

  • What are you seeing, and how does that differ from what you expect to see?
    I am expecting to have only the artifacts uploaded by the job I am depending on. Sometimes the mac sign job receives the artifacts from both the mac and windows builds. This is very strange.

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
    I’ve read about cleaning, but I cannot find a way to execute git clean -ffdx before artifact download.

Here is what I’ve read:
https://docs.gitlab.com/ee/ci/runners/#git-clean-flags
https://docs.gitlab.com/ee/ci/runners/README.html#git-strategy