下载未找到工件

发布于 2025-02-04 01:25:18 字数 377 浏览 2 评论 0原文

上载工件成功工作 00:00 上传文物... 警告:siteSpeed-cresults/:无匹配的文件
错误:没有文件上传
上传文物... 警告:浏览器 - 表现:json:无匹配的文件 错误:没有文件上传
清理项目目录和基于文件的变量 00:01 工作成功的

gitlab-ci.yaml示例:

包括: 模板:验证/浏览器 - 绩效.gitlab-ci.yml

browser_performance: 变量: url: https://example.com degradation_threshold:5

Uploading artifacts for successful job
00:00
Uploading artifacts...
WARNING: sitespeed-results/: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: browser-performance.json: no matching files
ERROR: No files to upload
Cleaning up project directory and file based variables
00:01
Job succeeded

gitlab-ci.yaml example :

include:
template: Verify/Browser-Performance.gitlab-ci.yml

browser_performance:
variables:
URL: https://example.com
DEGRADATION_THRESHOLD: 5

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

硪扪都還晓 2025-02-11 01:25:18

当找不到匹配文件时,通常会发生此错误。将文件移至主要目录,或指定文件和文件夹的正确路径。无论您的脚本在哪里结束,Gilab Runner都总是在项目的主要/根目录中搜索这些文件。

This error usually happens when there are no matching files found. Either move the files to the main directory, or specify the correct path to the files and folders. No matter where your script ends, gilab runner always searches for these files in the main/root directory of the project.

段念尘 2025-02-11 01:25:18

内创建一个新文件夹$ bitbucket_clone_dir然后在该新文件夹中复制所需的伪像?

之后,将新文件夹用作您的工件。

请参阅下面的示例步骤:

- step:
      name: XXXX
      image:
         name: YYYY
         username: $xxxy
         password: $yyyy
      script:
        - mvn clean install --file $BITBUCKET_CLONE_DIR/xxxx/pom.xml
        - mkdir –p $BITBUCKET_CLONE_DIR/dist
        - cp -R xxx/target/* $BITBUCKET_CLONE_DIR/dist
        - ls -lah $BITBUCKET_CLONE_DIR/dist
      artifacts:
          - dist/**

我希望这有效

create a new folder inside $BITBUCKET_CLONE_DIR then copy your desired artifacts in that new folder?

After that, use the new folder as your artifacts.

See sample step below:

- step:
      name: XXXX
      image:
         name: YYYY
         username: $xxxy
         password: $yyyy
      script:
        - mvn clean install --file $BITBUCKET_CLONE_DIR/xxxx/pom.xml
        - mkdir –p $BITBUCKET_CLONE_DIR/dist
        - cp -R xxx/target/* $BITBUCKET_CLONE_DIR/dist
        - ls -lah $BITBUCKET_CLONE_DIR/dist
      artifacts:
          - dist/**

I hope this works

蛮可爱 2025-02-11 01:25:18

检查您在“工件”部分中提供的路径:

  artifacts:
      paths:
      - $CI_PROJECT_DIR
      expire_in: 1 week

如果您仅选择具有以下特定扩展名的文件,那么Gitlab Runner将无法找到具有任何其他扩展名的文件:

  artifacts:
      paths:
      - $CI_PROJECT_DIR/*.xlsx
      expire_in: 1 week

因此,请小心您在此处提到的内容。”路径”

Check the path you have provided in the artifacts section:

  artifacts:
      paths:
      - $CI_PROJECT_DIR
      expire_in: 1 week

If you are choosing files only with some specific extensions like below, then GitLab Runner will not be able to find files with any other extensions:

  artifacts:
      paths:
      - $CI_PROJECT_DIR/*.xlsx
      expire_in: 1 week

So be careful with what are you mentioning in the "paths"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文