Jenkins supports ssh authentication in CLI.
Below is a command to verify that I am authenticated:
1 2java -jar jenkins-cli.jar -s http://myserver/jenkins who-am-i 3 4 Authenticated as: myuser 5 Authorities: 6 authenticated
However you still would meet permission error when running groovy script in CLI.
1 …
Read More