gpt4 book ai didi

gitlab-ci-runner - 错误 : Job failed: build directory needs to be an absolute path

转载 作者:行者123 更新时间:2023-12-05 00:47:39 25 4
gpt4 key购买 nike

  • 在 windows 上安装 Gitlab 运行器
  • 已注册
  • 使用测试 gitlab ci yaml 配置文件配置了一个测试仓库
  • CI/CD 管道显示错误
ERROR: Job failed: build directory needs to be an absolute path

这里是 .gitlab-ci.yml :

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"

最佳答案

我不知道你有什么类型的运行者,在我的例子中,我遇到了与 docker-ssh 运行者相同的问题。我的一个解决方法是在 config.toml 中指定 build_dir

[[runners]]
name = "jira-ssh-runner"
executor = "docker-ssh"
builds_dir = "/home/gitlab-runner/build"

关于gitlab-ci-runner - 错误 : Job failed: build directory needs to be an absolute path,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56253171/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com