Jenkins-无法读取"https://github.com"的用户名:没有这样的设备或地址 [英] Jenkins - could not read Username for 'https://github.com': No such device or address

查看:531
本文介绍了Jenkins-无法读取"https://github.com"的用户名:没有这样的设备或地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to set up Jenkins / Hudson on my Ubuntu PC. That's not the problem but I set an Android job with the following commands:

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

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

The job stops after a few seconds because of the error:

无法读取" https://github.com '的用户名:没有此类设备或地址

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

如何解决此错误? 请帮忙!

How do I fix this error? Please help!

推荐答案

我怀疑Jenkins正在尝试打开"/dev/tty"或要求您提供用户名和密码的内容.之所以失败,是因为Jenkins是作为守护程序运行的,并且"/dev/tty"不能在该上下文中使用. 没有这样的设备或地址"来自尝试打开"/dev/tty"的失败.

I suspect that Jenkins is attempting to open "/dev/tty" or something to ask you for a user name and password. That is failing because Jenkins is running as a daemon ... and "/dev/tty" can't be used in that context. The "No such device or address" comes from the failed attempt to open "/dev/tty".

解决方案是将作业配置为对提取使用特定的私钥.阅读curl手动输入并签出-E选项.或者,您可以使用-u并在curl命令中指定用户名和密码.

The solution would be to configure the job to use a specific private key for the fetch. Read the curl manual entry and check out the -E option. Alternatively, you could use -u and specify the username and password in the curl command.

这篇关于Jenkins-无法读取"https://github.com"的用户名:没有这样的设备或地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆