Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins started with all jobs lost, trying to use 'copy existing job' feature

the CI server was disconnected for a while for some strange reason from the network and when it came back up, jenkins displayed with no jobs. however in the directory where the jobs live, /var/lib/jenkins/jobs/, the two jobs that should appear are there, but don't show any evidence of existence in the web client.

i tried using the 'copy existing job' and then pointed it to /var/lib/jenkins/jobs/existing_test but it tells me: no such job /var/lib/jenkins/jobs/existing_test

any suggestions as to how to get this to work ?

like image 492
tipu Avatar asked Oct 22 '11 20:10

tipu


2 Answers

I know that question can be outdated, but a possible a solution is to run jenkins under appropriate user (the one it run previously). This helped me.

like image 117
glaz666 Avatar answered Nov 15 '22 05:11

glaz666


ended up just building the jobs brand new, wasn't able to find a fix

like image 22
tipu Avatar answered Nov 15 '22 06:11

tipu