jenkins missing jobs after removal of plugins
Asked Answered
L

2

8

I have a Jenkins Server (1.510) on Win 2008 with ~100 jobs. After installing and then uninstalling the CloudBees (Plugin_1, Plugin_2) set of plugins + restart I have the following issues:

  1. half of the Jobs are now missing.
  2. many plugins are not functioning well, for example the green-balls plugin is not working and also the entry to launch the backup plugin is missing
  3. many built in Jenkins buttons such the new "Credentials" is missing from the "Jenkins Configure" Menu.

Looking at the FS, i still see all the jobs.

I already tried :

  1. Using the reload configuration
  2. Reinstalling the plugins
  3. Reinstalling Jenkins with the same version once again

Still the jobs are missing

Any idea how to solve it?

Thanks,

Doron

Ledesma answered 15/4, 2013 at 5:50 Comment(0)
D
9

When job is loaded, many of the related Java classes get instantiated. If instantiation fails, usually because some plugin has been removed and that class is no longer available at all, then the job is hidden.

I suspect you have accidentally removed some other plugin too.

Note: Before actually doing anything, take full backup! Easiest is to backup entire Jenkins folder, where the jobs, configuration etc reside.

Easiest solution might be to just install Jenkins from scratch, install the plugins you do need (see below for troubleshooting if you're missing some), then copy the jobs subfolder to the new Jenkins. It might be best to do any configuration under Manage Jenkins by hand, but you can also just try copying the related XML config files.

If you are missing a plugin and can't figure out which one, you should look at jenkins.out.log and jenkins.err.log log files and search for exceptions happening after Jenkins is started. That may give you a clue on what plugin you are missing.

You can also try editing the job XML files to remove build steps you identified from the exceptions (remember to take backups first!), then restart Jenkins or select Reload configuration from disk from Manage Jenkins page.

If not solved, but you find relevant-looking exceptions or something else interesting, please update the question with details.

Dramatist answered 15/4, 2013 at 10:30 Comment(2)
In which files all the configurations are stored? (Slaves, Plugin Configurations, General Settings...)Ledesma
@DoronShai They're at the various XML files either at same folder where Jenkins is (that's how it is here) or under $JENKINS_HOME directory. Listing all *.xml files under these might be enlightening. Job configurations in particular are entirely under the project directory jobs/ProjectName... so they are easy to move around and backup.Dramatist
G
2

After I upgraded Jenkins, one of my jobs disappeared. I found out that although my job directory still existed, the config.xml file inside had somehow gone missing.

I restored this file from a backup, after updating all the plugins that needed updating, and reloaded the configuration, and the job reappeared in Jenkins.

Gonidium answered 16/8, 2013 at 9:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.