Artifacts file in Docker volumen not found

Summary

I have mounted a volume in a container and I am running a script inside it to generate a file which I want to store as an artifact.

When I look into the runners file system I find the generated file under /builds/team/project/test.json for example.

I now wanted to store this file as a artifact, but none of the artifacts.paths I used worked (absolute or relative).

My truncated .gitlab-ci-yml:

image: docker:latest

stages:
  - build
  - test

before_script:
  - CONTAINER_TEST_IMAGE="$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME"
  - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" "$CI_REGISTRY"

build:
  stage: build
  script:
    - echo "CONTAINER_TEST_IMAGE ${CONTAINER_TEST_IMAGE}"
    - docker build --pull -t "$CONTAINER_TEST_IMAGE" .
    - docker push "$CONTAINER_TEST_IMAGE"
  except:
    - tags

e2eTests:
  stage: test
  script:
    - "docker run -u root -v $(pwd):/opt/project/test/out/ $CONTAINER_TEST_IMAGE ./test/getData.sh"
  artifacts:
    paths:
      - *.json
      - /builds/team/project/*.json
      - ...

I am running 1.9.1 of the gitlab runner on my server but without dind.

Version:      1.9.1
Git revision: b23d3d4
Git branch:
GO version:   go1.7.4
Built:        Tue, 27 Dec 2016 15:30:25 +0000
OS/Arch:      linux/amd64