Jenkins setup:
Jenkins: 2.541.3
OS: Oracle Linux Server - 8.10
Java from JAVA_HOME: openjdk version “1.8.0_452”
OpenJDK Runtime Environment (Temurin)(build 1.8.0_452-b09)
OpenJDK 64-Bit Server VM (Temurin)(build 25.452-b09, mixed mode)
Java used in command: adoptopenjdk version 21
Currently I have a running instance of Jenkins from our last version (2.516.1), but have been trying to upgrade and am running into 403s when installing plugins. The specific command I am running is:
/usr/share/java/adoptopenjdk-21/bin/java -jar /var/lib/jenkins/jenkins-cli.jar -s http://localhost:8080 install-plugin <local_file_location>
This command returns:
STDOUT:
STDERR: CLI handshake failed with status code 403
Content-Length: 0
Content-Security-Policy-Report-Only: base-uri 'none'; default-src 'self'; form-action 'self'; frame-ancestors 'self'; img-src 'self' data:; script-src 'report-sample' 'self' usage.jenkins.io; style-src 'report-sample' 'self' 'unsafe-inline';
Date: Thu, 26 Mar 2026 21:18:36 GMT
Server: Jetty(12.1.5)
Vary: Accept-Encoding
X-CLI-Error: Jenkins URL is not configured (set Jenkins URL in the configuration)
X-Content-Type-Options: nosniff
It is currently downloading the hpi file locally and attempting to install from local. Prior, this command didn’t need the auth argument, and when I add the auth of an admin I get the same error. The main thing that I know about the version difference is the Jetty uplift, but I don’t see how that changes the install-plugin command. How can I get through the 403s to install the plugin?