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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With