gpt4 book ai didi

java - Jenkins - 无法读取 'https://github.com' : No such device or address 的用户名

转载 作者:太空宇宙 更新时间:2023-11-03 17:00:34 27 4
gpt4 key购买 nike

我正在尝试在我的 Ubuntu PC 上设置 Jenkins/Hudson。这不是问题,但我使用以下命令设置了一个 Android 作业:

export CLEAN=false
export LUNCH=cm_ace-userdebug
export REPO_BRANCH=cm-10.1
export RELEASE_TYPE=CM_NIGHTLY
curl -O https://raw.github.com/CyanogenMod/hudson/master/job.sh
. ./job.sh

由于错误,作业在几秒钟后停止:

could not read Username for 'https://github.com': No such device or address

如何修复此错误?请帮忙!

最佳答案

我怀疑 Jenkins 试图打开“/dev/tty”或其他东西来询问您的用户名和密码。这是失败的,因为 Jenkins 作为守护进程运行......并且“/dev/tty”不能在那个上下文中使用。 “没有这样的设备或地址”来自尝试打开“/dev/tty”失败。

解决方案是将作业配置为使用特定的私钥进行提取。阅读 curl 手册条目并检查 -E 选项。或者,您可以使用 -u 并在 curl 命令中指定用户名和密码。

关于java - Jenkins - 无法读取 'https://github.com' : No such device or address 的用户名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15736088/

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