Продублирую вопрос:
Почему не работает заявленный функционал jenkins-cli?
Command groovy
java -jar jenkins-cli.jar -s
http://10.42.27.103:8080/ -webSocket groovy [SCRIPT] [ARGUMENTS ...]
Executes the specified Groovy script.
SCRIPT : Script to be executed. Only '=' (to represent stdin) is supported.
ARGUMENTS : Command line arguments to pass into script.
[jenkins@sks10test008 ~]$ ${JAVA_8_HOME}/bin/java -jar $HOME/jenkins-cli.jar -auth ${JENKINS_USR} -s ${JENKINS_URL} -webSocket groovy ${HOME}/bin/all_jenkins_users.groovy
ERROR: This command is requesting the -remoting mode which is no longer supported. See
https://jenkins.io/redirect/cli-command-requires-channel