Gitlab ci artifacts not found

主宰稳场 提交于 2019-12-10 12:33:41

问题


. 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

回答1:


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



来源:https://stackoverflow.com/questions/47490688/gitlab-ci-artifacts-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!