Issue with Jenkins Serer Upgarde - jenkins

we have upgraded jenkins. war to the latest version and we can see the latest version in Jenkins console as well.
But the issue is when we open add/or remove programs from control panel it is still pointing to the old version. Please let me know what can be done to resolve the issue.

You don't have to do anything. This will have no effect on your set up. Though Add or remove programs will show the earlier version that you installed but whenever you decide to uninstall it, it's going to uninstall whichever version will be present in your Jenkins installation directory.
Note: What i have observed is that it actually removes the Windows service when it uninstalls but leaves the Jenkins installation directory structure intact.

Related

How to resolve stuck "Uninstallation pending" of Jenkins plugin?

I have a deprecated Jenkins plugin installed (WMI Windows Agents Plugin, v1.8.1), and I'm trying to uninstall it.
Problem
When I uninstall the plugin from the Jenkins web UI, it gets stuck at "Uninstallation pending" no matter how long I wait.
What I Tried
When I do a safe restart after a long wait, the UI shows that the plugin is still installed, as if I had not attempted an uninstall. I also tried disabling the plugin before attempting another uninstall—still stuck at pending uninstallation. Doing a yet another safe-restart after a long wait doesn't work either.
After you click uninstall, while the status is "Uninstallation pending",
click on Available Plugins and without selecting any plugins click on Download now and Install after Restart.
For some reason this completes the uninstallation
I initially couldn't uninstall the WMI Windows Agents Plugin on Jenkins 2.375.2 either.
This comment on JENKINS-70454 suggested that upgrading to Jenkins 2.375.3 might help, and indeed:
I could uninstall the plugin as expected after upgrading.
FWIW: I assume that hudson.PluginManager#considerDetachedPlugin was somehow responsible for keeping that plugin, as
journalctl -ujenkins | grep windows
showed me
hudson.PluginManager#considerDetachedPlugin: Loading a detached plugin as a dependency: /var/lib/jenkins/plugins/windows-slaves.jpi
after every reboot (but to be honest, I don't know much about detached plugins).

Jenkins plugin updates are unavailable

I have updated my jenkins server and see the following message for some plugins. I am not sure how to fix this. I looked at the dependencies section for that plugin and I see they are already installed. Not sure what else is missing so I can see the update available. Dependency for this is Mailer which is already installed on my server.
That is frustrating but you can try uploading plugins manually.
You can download plugins from here link to plugin storage.
Of course you have to roughly see what version of the plugin goes with your jenkins version.
Once you downloaded 'proper' plugin version, you go to manage plugins, advanced tab and there you can upload the plugin file. After that restart jenkins and check changes. You should really go to manage plugins, updated plugin tab and update selected plugins...
It could be guess work, but I'm sure after a couple of guesses you'll get to the version of Jenkins you have.
You might need to upgrade jenkins.. here are all jenkins war files:
https://get.jenkins.io/war-stable/
Last but not least... don't try to fix all dependencies.. fix those you use, rest is optional.

Jenkins version doesn't match

I have jenkins installed on an Ubuntu VM.
In the web interface I can see the version is
2.32.3.
However, if I go to /home/bitnami/.jenkins/config.xml I see the version is 1.0 (there is this tag: <version>1.0</version>)
How can it be? am I looking in the wrong place?
Thanks
You may have two versions installed, one in your system and one in your user account.
Did you installed by apt-get or wget?
When you execute the app, you may be running the Jenkins installed in your system and you are looking in your user HOME directory
Try (whereis jenkins and which jenkins) and execute this jenkins in your terminal to see if the version match.

Jenkins Upgrade via WAR file but Win Installed list shows original version

When upgrading Jenkins via replacement WAR file when we go into Jenkins all is showing correctly as the new updated version. However, The Windows Control Panel "Programs & Features" Still shows as the original version which was fully installed.
is there a way this can be updated (registry) as I'm concerned that an future scans of our system for old software will still flag this up.
This has turned out to not be an issue as the health checking software does not look at this.

Downgrade Jenkins

I updated Jenkins a few days ago. But in the current Jenkins version, there are some annoying bugs. Is it possible to downgrade the version of Jenkins and if this is possible, how is it possible to do it?
I have been struggling with downgrading Jenkins as well, lately because the latest version seems to have a problem handling JDK 5 code (which I am unfortunately tied to for a little while longer)
Here's how I did my downgrade:
Locate an earlier stable version at https://updates.jenkins-ci.org/
Download the war file
Stop the Jenkins service
Replace the jenkins.war with the new.
Restart the service.
I had an additional issue with the configuration file not being compatible. E.g. In my case I had to disable matrix to get the service running. Your case may be different, so I suggest another question.
I easily rolled back to the last working version bydoing below steps:
Go to the location where jenkins is installed.
Rename jenkins.war if it exists to jenkins.war.corrupted
You would find a file jenkins.war.bak in same direcotry. Rename it to 'jenkins.war'
Downgrading should be equivalent to the upgrading process:
To upgrade from earlier versions of Jenkins, simply redeploy the WAR
file. Read this document for more about container-specific
instructions on how to do this. See this document for automation.
In my case, I followed the process below -
Download the jenkins.war file from https://updates.jenkins-ci.org
Stop the Jenkins service
Replace the jenkins.war with the new.
Restart the service.
Done
If you have upgraded from front end (i.e. Manage Jenkins > Upgrade Jenkins) Then you will get an option to Downgrade also from there (under Manage Jenkins -- restore to previous version)

Resources