gpt4 book ai didi

在 Windows 上使用 Bash 的 Gitlab

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

是否可以让 Gitlab 在 Windows 上使用 Bash shell 执行项目?我已经使用以下配置配置了我的运行者,但它不起作用(保持挂起状态):

[[runners]]
name = "IchsanWin8Bash"
url = "https://gitlab.local/ci"
token = "7fa094668bd46c27e7fcf0041d328e"
executor = "shell"
shell = "bash"
[runners.ssh]
[runners.docker]
tls_verify = false
image = ""
privileged = false
disable_cache = false
[runners.parallels]
base_name = ""
disable_snapshots = false
[runners.virtualbox]
base_name = ""
disable_snapshots = false
[runners.cache]
Insecure = false

bash 命令是可以访问的,因为我把它放在环境路径中:C:\Users\ichsan\AppData\Local\Programs\Git\bin

最佳答案

不,that is not supported . Windows 上可用的 shell 是 CMD(默认)和 Powershell(强烈推荐)。

但是,您仍然可以在真正需要的地方执行 Bash 命令。自推出 Windows Subsystem for Linux ,您可以在正确配置的机器上从任何 Windows shell 进入 Bash。您将无法在 .gitlab-ci.yml 中使用 Bash 命令,但您应该能够在名为 from .gitlab 的脚本中使用它们-ci.yml(无论如何你都在做,对吧?)。

关于在 Windows 上使用 Bash 的 Gitlab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39764274/

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