I want to generate multiple artifacts for a single commit by assigning it with multiple tags. Each tag should get its own job artifacts.
The corresponding jobs complete without errors, and I can download the artifacts through the CI/CD Jobs page just fine.
However, when multi-tagging a single commit, only one of the artifact links on the project’s Tags page works, while the others link to 404.
When there’s a single tag per commit, it works as expected.
Is this a bug? Is it somehow possible to achieve the expected result?
.gitlab-ci.yml looks something like this:
stages: - build subproject1: stage: build script: - make -C subproject1 rules: - if: '$CI_COMMIT_TAG =~ /^subproject1-.*$/' artifacts: name: "$CI_COMMIT_TAG" expire_in: 100 yrs paths: - subproject1/build tags: - runner1 subproject2: stage: build script: - make -C subproject2 rules: - if: '$CI_COMMIT_TAG =~ /^subproject2-.*$/' artifacts: name: "$CI_COMMIT_TAG" expire_in: 100 yrs paths: - subproject2/build tags: - runner1
The links on the project’s tag page look like this:
One of them works, the other one results in 404.