Skip to content

Generate artifacts metadata only for zip

What does this MR do?

We only support artifact methods that generate zip arhives, however this would fail the jobs at the moment. With this MR artifacts metadata will not be generated for unsupported artifacts.

Docs MR with a note about this: gitlab!95478 (merged)

Why was this MR needed?

So jobs don't fail.

What's the best way to test this MR?

Run these two jobs, they should not fail, the upload1 job should have a metadata inside its archive:

variables:
  RUNNER_GENERATE_ARTIFACTS_METADATA: "true"

upload:
   script:
     - echo "VERSION=123" >> build.env
   artifacts:
     reports:
       dotenv: build.env
   tags:
    - shell-local

upload1:
   script:
     - echo "VERSION=123" >> build.env
   artifacts:
     paths:
      - build.env
   tags:
    - shell-local

What are the relevant issue numbers?

Related to gitlab#367203 (closed)

Edited by Georgi N. Georgiev

Merge request reports