gitlab - 如何在 gitlab-ci 运行期间修复“没有这样的文件或目录”
问题描述
我刚刚为 gitlab-ci 配置了一个运行器,并将模板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文件夹
我错过了什么?
解决方案
终于发现这是 gitlab-runner 和 Debian/Buster 的错误,注释掉.bash_logout
文件/home/gitlab-runner
将解决这个问题
这是对这个问题的讨论,以帮助其他遇到相同问题的人
推荐阅读
- python - Python:列出您的平台支持的“格式代码”日期?
- android - 如何使用旧 api(如 16)构建 android 应用程序?
- python - 如何使用 matplotlib 在 Pandas 中绘制两个元组列表?
- python - 分层图表中每个图表对应的不同颜色?
- docker - 为什么我用 Click 库编写的这个 CLI 应用程序不能正常工作?
- sql-server - SQL 高 CPU 使用率(SharePoint 查询)
- css - 如何覆盖引导表行背景颜色
- google-cloud-pubsub - PubSubLite:跨区域访问 PubSub Lite
- javascript - Laravel 无限滚动并从 Api 获取数据
- django - URL中PK后的Django忽略字符串