有谁知道如何解决“缺少gitlab-runner.上传工件被禁用.”
我的服务器上有两个ssh runner.一个用于本地ssh runner,另一个用于远程服务器ssh runner.当地的ssh跑步者工作得很好.但是,当我打电话给远程shh跑步者时,它正在成功构建,但它显示“缺少gitlab-runner.上传工件被禁用.”所以我无法在下一阶段调用工件.
gitlab-ci.yml文件如下所示:
stages:
- build
- deploy
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:
stage: build
script:
- build script
artifacts:
paths:
- build/
only:
- master
deploy:
stage: deploy
script:
- deploy script
dependencies:
- build
only:
- master
最佳答案 您还需要在ssh目标主机上安装gitlab-runner. Gitlab不知何故需要这个来上传工件.现在还记录了这一点:
https://docs.gitlab.com/runner/executors/ssh.html:
If you want to upload job artifacts, install
gitlab-runner
on the host you are connecting to via SSH.