7
votes

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

2

2 Answers

8
votes

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.

1
votes

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.