如何在 gitlab-ci 运行期间修复“没有这样的文件或目录”

arm*_*ong 4 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 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"
Run Code Online (Sandbox Code Playgroud)

但是工作失败了:

在此处输入图片说明

我登录到跑步机,发现所需位置下只有一个 ${projectname}.tmp 文件夹

在此处输入图片说明

我错过了什么?

arm*_*ong 8

终于发现这是 gitlab-runner 和 Debian/Buster 的一个错误,随意注释掉该.bash_logout文件即可/home/gitlab-runner解决此问题

这是对这个问题的讨论,以帮助遇到同样问题的其他人