jenkinsci / kubernetes-operator

Kubernetes native Jenkins Operator
https://jenkinsci.github.io/kubernetes-operator
Other
596 stars 233 forks source link

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

Closed richamishra006 closed 6 months ago

richamishra006 commented 11 months ago

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

+ 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 https://updates.jenkins.io/update-center.json from JENKINS_UC environment variable
Using experimental update center https://updates.jenkins.io/experimental/update-center.json from JENKINS_UC_EXPERIMENTAL environment variable
Using incrementals mirror https://repo.jenkins-ci.org/incrementals from JENKINS_INCREMENTALS_REPO_MIRROR environment variable
No CLI option or environment variable set for plugin info, using default of https://updates.jenkins.io/plugin-versions.json
No war entered. Will use default of /usr/share/jenkins/jenkins.war

Retrieving update center information
Update center URL: https://updates.jenkins.io/update-center.json?version=2.401.1
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
Done
+ echo 'Installing plugins required by user - end'
Installing plugins required by user - end
bash: line 1: /usr/bin/tini: No such file or directory

cli-error

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

brokenpip3 commented 11 months ago

I'm sorry but I never used the official jenkins cli so I'm not aware on what should be the right behavior. If you start jenkins on your laptop you are able to use the cli? I may need to find time to tests this 'cause like I said never used before.

brokenpip3 commented 11 months ago

it seems that is disable here: https://github.com/jenkinsci/kubernetes-operator/blob/01a3990d6684278f15e42095bc636333958cafee/pkg/configuration/base/resources/base_configuration_configmap.go#L94-L96 need to understand why and if we should keep it like that.

brokenpip3 commented 11 months ago

probably has been disabled due to this: https://www.jenkins.io/blog/2019/02/17/remoting-cli-removed/

brokenpip3 commented 8 months ago

Can you elaborate the use case of using the cli?