“如何修复”;没有这样的文件或目录;在gitlab ci运行期间
我刚刚用一个运行程序配置了gitlab ci,并以如下方式运行模板“如何修复”;没有这样的文件或目录;在gitlab ci运行期间,gitlab,gitlab-ci,Gitlab,Gitlab Ci,我刚刚用一个运行程序配置了gitlab ci,并以如下方式运行模板bashci任务: # This file is a template, and might need editing before it works on your project. # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options # you can delete this line if you're not usi
bash
ci任务:
# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
# you can delete this line if you're not using Docker
#image: busybox:latest
before_script:
- echo "Before script section"
- echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details"
after_script:
- echo "After script section"
- echo "For example you might do some cleanup here"
build1:
stage: build
script:
- echo "Do your build here"
test1:
stage: test
script:
- echo "Do a test here"
- echo "For example run a test suite"
test2:
stage: test
script:
- echo "Do another parallel test here"
- echo "For example run a lint test"
deploy1:
stage: deploy
script:
- echo "Do your deploy here"
但工作失败了:
我登录到runner机器,发现在所需位置下只有一个${projectname}.tmp文件夹
我错过了什么吗?我也有类似的问题,但我的问题是由
cdebootstrap
要解决我使用的问题,请执行以下操作:
stable ./debian-minbase http://deb.debian.org/debian/
希望这个答案有用
您还可以使用:sudo find/-name“mk prebuilded images.sh”
它最终将发现:
/usr/lib/gitlab-runner/mk-prebuilt-images.sh
最后发现这是gitlab runner和Debian/Buster的一个bug,请注释掉
。位于/home/gitlab runner
的bash\u注销文件将修复此问题
以下是此问题的示例,以防帮助遇到相同问题的其他人感谢您的回答,我已尝试使用apt get install cdebootstrap
添加cdebootstrap
,但问题仍然存在