Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins CLI empty response

Hi I am using the CLI to transfer jobs between two jenkins servers.

But I am unable to get the CLI working..

When I run: java -jar jenkins-cli.jar -s <myhost> -auth <myid>:<mysecret> help

I get a empty response, no errors, no exceptions, just an empty shell prompt

like image 717
Vigneshwaren Avatar asked Aug 16 '26 15:08

Vigneshwaren


1 Answers

If your Jenkins is on Linux and behind an NGINX reverse-proxy server, do the following:

1.Open the file /etc/nginx/nginx.conf and add the following entries:

proxy_http_version 1.1;
proxy_request_buffering off;
proxy_buffering off;

2.Restart Jenkins and NGINX services:

sudo systemctl restart jenkins
sudo systemctl restart nginx

For more details, see Jenkins behind an NGinX reverse proxy.

like image 139
Dibakar Aditya Avatar answered Aug 19 '26 05:08

Dibakar Aditya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!