CI: Aartifacts:paths does not parse double asterisks (**)

Summary

When using the double asterisk syntax with artifacts:paths, as used with only/changes, no files are found.

Steps to reproduce

  artifacts:
    paths:
      - output/**/*.apk

What is the current bug behavior?

Uploading artifacts...
WARNING: output/**/*.apk: no matching files      
ERROR: No files to upload                          
Job succeeded

I used a few variants (./ prepended etc) but nothing triggered the correct behavior. What's worse maybe, is that it says 'ERROR: No files to upload' but then happily returns with 0; Job succeeded. So then it is only a warning? as if it where an error, I expect this job to then fail. (Separate ticket?)

What is the expected correct behavior?

Matching files in all sub-directories are found and added to the archive.

Output of checks

This bug happens on GitLab.com

Workaround

A poor workaround is to of course use a different syntax:

    paths:
      - output/*/*/*.apk

which does work

Uploading artifacts...
output/*/*/*.apk: found 2 matching files           
Uploading artifacts to coordinator... ok            id=259826265 responseStatus=201 Created token=SyHrRzkz
Job succeeded

The big 'unacceptable' downside of this work-around is that the number of path items need to be known.

For me this work around is 'okay', but this really is unexpected behavior, as a user I would expect to use the ** syntax in most statements.