Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins - mixed build history after restart

We have different Jenkins-Jobs on the same git repository with different artifacts. And everything works nearly okay for a few weeks.

But since we restarted our server for updates every build history shows us the same ... Also our dashboard shows the wrong build number for the jobs.

http://www.picfront.org/d/8OC6 (cant post images cause of reputation limit)

Like you can see every jobs still has the build number 107 but only the main job is at this number the others are around 30 to 50 ... And as a result every information about builds is a bit incorrect.

Information:

  • Buildsystem: Jenkins 1.477 Win XP 32 bit Java 7
  • 5 Jobs on the same git-repsoitory
  • Building of an Eclipse application and an Andorid applocation

[EDIT]

I also get some Errors in the Jenkins-Log -

24.09.2012 13:29:03 hudson.model.RunMap load
WARNUNG: multiple runs claiming to be #41; using run from C:\Jenkins...

[EDIT2]

I found out when i add a new FreeStyle Job it will show also the full history of the other jobs after a restart.

like image 627
kdoteu Avatar asked Sep 24 '12 12:09

kdoteu


1 Answers

The solution is to set in the global configuration of jenkins a parameterized path where the builds should be saved. You can find this value under

Manage Jenkins --> Configure Page --> Advanced Conifguration --> Build Path

In my case i configured an absolute path and so every build was saved in one directory.And after a restart every job checked this folder an claimed the builds.

Now i have : ${ITEM_ROOTDIR}/builds

So every job has it own build directory and the problem is gone.

Source: https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-users/SgSJKBJIClg

like image 165
kdoteu Avatar answered Nov 18 '22 02:11

kdoteu