Skip to content

CI: Artifacts path "." doesn't match since 13.0

Summary

The CI artifacts path "." doesn't match any file since 13.0, while it matched all files in prior versions.

Steps to reproduce

Create .gitlab-ci.yml to with artifacts: { paths: '.' }:

image: busybox:latest

build:
  stage: build
  script:
    - echo "foo" > foo
    - echo "bar" > bar
  artifacts: { paths: ['.'] }

test:
  stage: test
  script: ["ls -ls"]

Example Project

https://gitlab.com/claasaug/ci-artifacts-paths-dot

What is the current bug behavior?

Artifacts are not created anymore since 13.0.

What is the expected correct behavior?

Artifacts should be created with all files.

Relevant logs and/or screenshots

See: https://gitlab.com/claasaug/ci-artifacts-paths-dot/-/jobs/569788306#L36

Uploading artifacts for successful job
Uploading artifacts...
WARNING: .: no matching files                      
ERROR: No files to upload                          
Job succeeded

Output of checks

This bug happens on GitLab.com

Possible fixes

Make the "." paths value work again or at least fail the job if there are no matching files.

(Workaround: Use paths: ./ or paths: "*" instead.)

Edited by Jason Yavorsky