为什么 jx install 运行 chrome 来获取管理员令牌?
Why jx install runs chrome to get the admin token?
当我 运行 jx install
我收到这些错误消息时
Attempting to find the Jenkins API Token with the browser in headless mode...using url http://jenkins.jx.35.205.149.20.nip.io/me/configure
unable to automatically find API token with chromedp using URL http://jenkins.jx.35.205.149.20.nip.io/me/configure
retrying after error:Running in batch mode and no default api token found
不幸的是,我运行正在从 Ansible docker 容器安装这些安装脚本。因此,我没有在容器中安装 chrome(我也没有 X 环境和 window 管理器)。
那么为什么要检索此令牌?有没有办法设置它 "by hand"(例如通过另一个 jx 命令)?
Jenkins 目前没有其他方法来获得 API 令牌,直到我们转向临时/一次性大师而不是静态大师。
我们可以禁用 Chrome 吗?如果它不能使用 Chrome 获取 API 令牌,代码会要求您从 Jenkins 控制台访问 URL 和 copy/paste api 令牌
当我 运行 jx install
我收到这些错误消息时
Attempting to find the Jenkins API Token with the browser in headless mode...using url http://jenkins.jx.35.205.149.20.nip.io/me/configure
unable to automatically find API token with chromedp using URL http://jenkins.jx.35.205.149.20.nip.io/me/configure
retrying after error:Running in batch mode and no default api token found
不幸的是,我运行正在从 Ansible docker 容器安装这些安装脚本。因此,我没有在容器中安装 chrome(我也没有 X 环境和 window 管理器)。
那么为什么要检索此令牌?有没有办法设置它 "by hand"(例如通过另一个 jx 命令)?
Jenkins 目前没有其他方法来获得 API 令牌,直到我们转向临时/一次性大师而不是静态大师。
我们可以禁用 Chrome 吗?如果它不能使用 Chrome 获取 API 令牌,代码会要求您从 Jenkins 控制台访问 URL 和 copy/paste api 令牌