Jenkins started with all the lost jobs, trying to use the copy existing work feature

For some strange reason, the CI server was disconnected from the network for some strange reason, and when it returned, the jenkins were displayed without any tasks. however, in the directory where the jobs work, / var / lib / jenkins / jobs /, two jobs should appear, but they do not show any evidence of existence in the web client.

I tried using a "copy of an existing job" and then pointed it to / var / lib / jenkins / jobs / existing _test, but it tells me: there is no such job / var / lib / jenkins / jobs / existing _test

any suggestions on how to make this work?

+6
source share
3 answers

finished just creating new jobs, couldn't find a fix

+1
source

I know this question may be outdated, but a possible solution is to run jenkins under the appropriate user (the one he was running previously). It helps me.

+2
source

First, I would try looking in jenkins logs, since your data is in / var / lib / jenkins. I would suggest that your log files are in / var / log / jenkins. Maybe you can find out what's wrong there.

You can also try the link "download configuration from disk" in the "manage jenkins" view. This should try to reload the configuration files from your directories and possibly return your jobs. In any case, you can see something in your magazines. If the logs have empty file permissions checks, I had problems with this after updating sometimes.

0
source

Source: https://habr.com/ru/post/899880/


All Articles