Jenkins cli is giving 4XX errors, and most of the other features seems to be broken

Kubernetes version: 1.23
Jenkins Operator version: 0.8.0-beta.2

  • First we installed the operator via helm, which installed the stable release(0.6.2) and the jenkins pod kept on restarting, and there was no error in the logs.
  • So we checked the kubernetes manifest file and it was pointing to 0.8.0-beta.2 version, after switching to this version and adding the script, which we found in one of the github issue (without this it was giving error ), below is the error we were getting
+ echo 'Installing plugins required by Operator - end'
+ echo 'Installing plugins required by user - begin'
+ cat
Installing plugins required by Operator - end
Installing plugins required by user - begin
+ jenkins-plugin-cli --verbose --latest true -f /var/lib/jenkins/user-plugins.txt
File containing list of plugins to be downloaded: /var/lib/jenkins/user-plugins.txt
Reading in plugins from /var/lib/jenkins/user-plugins.txt

No directory to download plugins entered. Will use default of /usr/share/jenkins/ref/plugins
Using update center from JENKINS_UC environment variable
Using experimental update center from JENKINS_UC_EXPERIMENTAL environment variable
Using incrementals mirror from JENKINS_INCREMENTALS_REPO_MIRROR environment variable
No CLI option or environment variable set for plugin info, using default of
No war entered. Will use default of /usr/share/jenkins/jenkins.war

Retrieving update center information
Update center URL:
Returning cached value for: update-center-2.401.1
Returning cached value for: experimental-update-center-2.401.1
Returning cached value for: plugin-versions
+ echo 'Installing plugins required by user - end'
Installing plugins required by user - end
bash: line 1: /usr/bin/tini: No such file or directory
  • After the version change and adding the script, we realised that some of the features are broken, like i am unable to access the /manage/cli endpoint and also if we run any jenkins-cli command from the terminal, getting this error
java -jar jenkins-cli.jar -s http://localhost:8082/ -auth jenkins-operator:113d63cfcf93e0aec800c7d0b6be45e97b
io.jenkins.cli.shaded.jakarta.websocket.DeploymentException: Handshake error.
	at java.base/java.util.concurrent.Executors$
	at java.base/
	at java.base/java.util.concurrent.AbstractExecutorService.submit(
	at hudson.cli.CLI.webSocketConnection(
	at hudson.cli.CLI._main(
	at hudson.cli.CLI.main(
Caused by: Response code was not 101: 404.
	at java.base/
	at java.base/
	at java.base/
	at java.base/
	at java.base/$
	at java.base/$
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.base/java.util.concurrent.ThreadPoolExecutor$
	at java.base/

Attaching the screenshot we got after hitting /manage/cli endpoint,


can someone please help here, our end goal is to create a script which will include jenkins cli to manage the jobs, but due to these errors in operator, unable to execute jenkins cli command