Search code examples
gitlab-ci-runner

Gitlab ci artifacts not found


. Hello, can someone tell me, why gitlab cannot find my artifacts?

Logfile:

$ ls -la /build/Project*.zip
-rw-r--r-- 1 root root 1641 Nov 25 21:18 /build/Project-1.0.zip
Uploading artifacts...
WARNING: /build/Project*.zip: no matching files

CI File:

package:
  stage: package
  script:
    - ... ... ...
    - ls -la /build/Project*.zip
  only:
    - master
  artifacts:
    paths:
      - "/build/$CI_PROJECT_NAME*.mkp"
    expire_in: 1 week

Solution

  • The path of artifacts has to be relative to and be a child of $CI_PROJECT_DIR.