#27372·jenkins

jenkins-cli make requests with user-agent java-$version

Author: asarubboCreated Sep 10, 2026Updated Sep 17, 2026

I noticed that jenkins-cli makes requests with java as the user-agent.

If something like nginx is configured to block requests with a generic java user-agent, this won't work.

It would be great if jenkins-cli could use its own user-agent, such as Jenkins-cli-$version.

here is what I can see now:

10.10.5.58 - admin [10/Sep/2026:09:55:04 +0200] "GET / HTTP/1.1" 200 32768 "-" "Java/25.0.3" "-"
10.10.5.58 - admin [10/Sep/2026:09:55:19 +0200] "POST /cli?remoting=false HTTP/1.1" 200 858 "-" "Java/25.0.3" "-"