在测试阶段 gitlab-ci.yml 失败?

时间:2021-02-01 21:29:09

标签: git gitlab gitlab-ci

当我将代码提交到 gitlab 项目时,我在测试阶段失败。这是我的测试阶段代码:

test:
  stage: test
  script:
-chmod +x gradlew
    - ./gradlew check

这里是错误:

 $ chmod +x gradlew
 chmod: cannot access 'gradlew': No such file or directory
...
Uploading artifacts...
WARNING: build/reports/: no matching files
ERROR: No files to upload

有什么办法可以解决这个问题吗?还有一个……我如何在没有 gitlab-runner 的情况下在我的机器上本地检查 gitlab-ci.yml 或者唯一的决定是提交并检查 gitlab 本身?谢谢!

0 个答案:

没有答案