未找到 Gitlab ci 工件
Gitlab ci artifacts not found
。你好,谁能告诉我,为什么gitlab找不到我的工件?
日志文件:
$ 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 文件:
package:
stage: package
script:
- ... ... ...
- ls -la /build/Project*.zip
only:
- master
artifacts:
paths:
- "/build/$CI_PROJECT_NAME*.mkp"
expire_in: 1 week
工件的路径必须与 $CI_PROJECT_DIR.
相关并且是其子项
相对于 $CI_PROJECT_DIR.
这样说:
- cp -r $(pwd)/target/*.html $CI_PROJECT_DIR/report
- ls -la $CI_PROJECT_DIR/report
artifacts:
paths:
- report/*.html
要了解更多信息,请访问:https://gitlab.com/gitlab-org/gitlab-foss/-/issues/15530
。你好,谁能告诉我,为什么gitlab找不到我的工件?
日志文件:
$ 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 文件:
package:
stage: package
script:
- ... ... ...
- ls -la /build/Project*.zip
only:
- master
artifacts:
paths:
- "/build/$CI_PROJECT_NAME*.mkp"
expire_in: 1 week
工件的路径必须与 $CI_PROJECT_DIR.
相关并且是其子项相对于 $CI_PROJECT_DIR.
这样说:
- cp -r $(pwd)/target/*.html $CI_PROJECT_DIR/report
- ls -la $CI_PROJECT_DIR/report
artifacts:
paths:
- report/*.html
要了解更多信息,请访问:https://gitlab.com/gitlab-org/gitlab-foss/-/issues/15530