On Tue, Sep 16, 2014 at 08:11:16AM +0300, Marius Gedminas wrote: > I've got a Jenkins job 'ivija-my360' that shows builds #1-#19 in the > history sidebar, builds a build #20 every time I try to build it, and > then forgets about it immediately. ... > This is similar to https://issues.jenkins-ci.org/browse/JENKINS-15156. > What's different from the comments is that restarting Jenkins doesn't > bring the missing builds back. I'm also pretty sure my on-disk data > structures are messed up and I should fix them first -- or maybe the > out-or-order build monitor thingy should be fixed to be able to do that, > correctly? > > I found https://github.com/docwhat/jenkins-job-checker in the comments > of that bug and ran it against my job directory ... > The proposals seemed sane, so I ran jobber.rb --solve, stumbled upon > some bug[*], reran it and now the build directory seems fine. ... > Trying to schedule a new build, of course, scheduled build #21 while > completely ignoring the fact build #21 was now showing up in history. > Asking Jenkins to reload configuration to disk fixed that (I canceled > the scheduled build and scheduled a new one, which got number #25). > > I'll see whether the fix works once my Jenkins gets through the build > queue, which will take a few hours (I'm moving to new slaves in fresh > VMs and am rebuilding EVERYTHING to make sure they're set up correctly).
The fix works.
A side effect of reloading configuration from disk is that any[+] jobs that
were running get lost! They're not listed in history or anywhere and
accessing them gives you 404 pages, while they're still running and once
they're finished.
[+] extra fun: most of the running jobs got lost this way, but one
persistent job did not exhibit any problems, even though it was
running during multiple config reloads.
Reloading configuration from disk again, once the running job is done,
makes it appear in history again -- but last stable build symlinks do
not get updated and point to a previous successful build.
(I may just have found a way to reproduce one case of JENKINS-15156.)
Marius Gedminas
--
"Linux: the operating system with a CLUE... Command Line User Environment".
(seen in a posting in comp.software.testing)
signature.asc
Description: Digital signature
