Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install button not visible in plugin manager in jenkins

I am trying to download some plugins via Manage Plugins in Jenkins but strangely I do not see any "Install without restart" or "Download now and install after restart" button at the bottom of the Plugin Manager in the web UI, hence I am not able to install any plugin. Need help to fix it.

Image of the WebUI

Jenkins version : 2.260

Can see below error in the logs :

Oct 06, 2020 5:52:57 PM WARNING hudson.init.impl.InstallUncaughtExceptionHandler handleException null org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.260.jar!/lib/layout/isAdmin.jelly:28:21: <d:invokeBody> java.lang.StackOverflowError

like image 500
geekyM Avatar asked Oct 06 '20 18:10

geekyM


People also ask

How do you Install plugins on Jenkins?

Step 1: To install a plugin, go to the Jenkins Dashboard and click on Manage Jenkins. Step 2: Scroll down and select Manage Plugins. Step 3: Go to the Available tab and in the filter option, search for the plugins which you want to install. Step 4: Select that plugins and click on Install without restart button.

What plugins need to Install in Jenkins?

Installed Plugins Using Jenkins as a kind of Cron, scheduling tasks on background, no plugins will be necessary. But to create an automation to the simplest project you will need at least a version control system adapter as SVN or GIT to get your source code.

Can we Install plugin using Jenkins CLI?

Hi@akhtar, You need to tell your Plugin name in your Jenkins CLI command. It will automatically connect to your Jenkins with the help of the jenkins-cli. jar file and install the plugin.


2 Answers

There was an issue with the Jenkins update center which stands resolved. A plugin was added that had a dependency on itself.

https://issues.jenkins-ci.org/browse/JENKINS-63877

You might need to click on "Check Now" to get rid of the cached local data and the install button should be visible.

like image 83
Mayur N Avatar answered Oct 16 '22 08:10

Mayur N


it seems to depend on a broken JSON on https://updates.jenkins.io/update-center.json

Workaround: manually download and repair the JSON

curl https://updates.jenkins.io/current/update-center.json | sed -e 's/^{/'$(printf "\x1e")'{/' | jq --seq . > /var/lib/jenkins/update-center.json

set Update Site on Plugin Manager > Advanced > Update Site

URL file:///var/lib/jenkins/update-center.json
like image 35
Benjamin Rechsteiner Avatar answered Oct 16 '22 09:10

Benjamin Rechsteiner