Skip to content

Enable Jenkins CLI #4974

@jglick

Description

@jglick

Service(s)

ci.jenkins.io

Summary

It seems the CLI is blocked from ci.jenkins.io. I have a vague recollection that this decision was made many years ago to avoid some sort of DoS issue. @daniel-beck might recall. If so, is it still relevant after #4971?

Reproduction steps

$ authn=jglick:11…
$ curl -su $authn https://ci.jenkins.io/whoAmI/api/json | jq
{
  "_class": "hudson.security.WhoAmI",
  "anonymous": false,
  "authenticated": true,
  "authorities": [
    "all",
    "ROLE_SENIORS",
    "authenticated",
    "ROLE_ALL",
    "seniors"
  ],
  "name": "jglick"
}
$ java -jar jenkins-cli.jar -auth $authn -s https://ci.jenkins.io/ who-am-i
CLI handshake failed with status code 400
Cache-Control: must-revalidate, no-cache, no-store
Connection: close
Content-Length: 511
Content-Security-Policy: …
Content-Type: text/html;charset=iso-8859-1
Date: Wed, 28 Jan 2026 22:46:41 GMT
Reporting-Endpoints: …
Server: Jetty(12.1.5)
Via: 1.1 ci.jenkins.io
X-Content-Type-Options: nosniff

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions