gpt4 book ai didi

jenkins - 尝试运行 "Error: you must authenticate to access this jenkins"时获取 "Java -jar jenkins-cls.jar -s http://localhost:8080/help"

转载 作者:行者123 更新时间:2023-12-04 13:10:39 24 4
gpt4 key购买 nike

低于错误
Error: you must authenticate to access this jenkins" when trying to run "Java -jar jenkins-cls.jar -s http://localhost:8080 /help
执行的步骤如下,
1. 将 jenkins-cls.jar 复制到本地驱动器。
2. 打开命令提示符并导航到保存 jenkins-cls.jar 的路径。
3. 输入“Java -jar jenkins-cls.jar -s http://localhost:8080/help”并回车。

它应该要求输入密码,但相反,它显示消息“错误:您必须进行身份验证才能访问此 jenkins”。

非常感谢解决此查询的任何帮助。

最佳答案

转到管理 Jenkins -> 配置全局安全性 ->

  • 启用安全检查
  • 授权 -> 登录用户可以做任何事情 -> 勾选允许匿名
    读访问

  • 重启 Jenkins 并尝试运行
    java -jar jenkins-cls.jar -s http://localhost:8080 help --username user --password pwd
    或者
    java -jar jenkins-cls.jar -s http://localhost:8080 login -auth username:(password/token) .

    关于jenkins - 尝试运行 "Error: you must authenticate to access this jenkins"时获取 "Java -jar jenkins-cls.jar -s http://localhost:8080/help",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46220127/

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