无法将 Jenkins API 令牌与 wget 一起使用
Unable to to use Jenkins API tokens with wget
关于对私有 Jenkins 实例执行 HTTP 调用(使用 GitHub 身份验证),确实发生了一些非常奇怪的事情。
curl 有效:curl -u myuser:mytoken https://jenkins.example.com
或通过 curl https://myser:mytoken@jenkins.example.com
对 wget 做同样的事情不起作用,给出:
HTTP request sent, awaiting response... 403 Forbidden
注意:wget --http-user=<user> --http-password=<token> <url>
是 wget 的替代语法,但两种方法给出的结果相同:403.
尝试将 --auth-no-challenge
选项添加到 wget
命令行。
关于对私有 Jenkins 实例执行 HTTP 调用(使用 GitHub 身份验证),确实发生了一些非常奇怪的事情。
curl 有效:curl -u myuser:mytoken https://jenkins.example.com
或通过 curl https://myser:mytoken@jenkins.example.com
对 wget 做同样的事情不起作用,给出:
HTTP request sent, awaiting response... 403 Forbidden
注意:wget --http-user=<user> --http-password=<token> <url>
是 wget 的替代语法,但两种方法给出的结果相同:403.
尝试将 --auth-no-challenge
选项添加到 wget
命令行。