Excellent!
Changing Build Record Root Directory in the system settings was exactly 
what I was hoping for.
I never noticed that was there, assuming the setting has been there all 
along..

My jobs folder is now a very managable size, containing pretty much just 
the config.xml files, next build number, and a few symbolic links.

Thanks!

On Friday, March 10, 2017 at 10:24:05 PM UTC-5, Christopher Orr wrote:
>
> On Thu, 9 Mar 2017, at 22:37, Gastro Man wrote: 
> > Is it possible to configure Jenkins so the jobs' build history is not 
> > contained in the same directory as the config.xml? 
> > 
> > Ideally, I would prefer all the configs to be together in an area 
> > ("job_config" folder)  that I can put in source control, backup, quickly 
> > search and compare, and manage. 
> > 
> > And then the gigabytes of data stored in histories could be in another 
> > location ("job_history" folder) where I don't care about source control, 
> > don't need to include when searching across configs, etc. 
> > Possibly even store this on a separate storage device.. 
> > 
> > I find it frustrating to have the mixing of "control" and "data" inside 
> > every single job subfolder, but I haven't found a way around this so 
> far. 
>
> You could mark the "builds" subdirectories as ignored in source control? 
>
> Or if you go to Manage Jenkins > Configure System and click "Advanced" 
> at the top of the page, you'll be able to alter where build data is 
> stored ("Build Record Root Directory"). 
>
> If you change this to "${JENKINS_HOME}/builds/${ITEM_FULLNAME}", for 
> example, then all of the build data will be stored there. 
>
> At this point, the only thing left in ${JENKINS_HOME}/jobs/<name> (i.e. 
> ${ITEM_ROOTDIR}) will be the job config.xml, and the metadata about 
> build numbers and last success/failure symlinks etc.. 
>
> Note that changing this value will not automagically migrate all of your 
> existing data to the new location you've specified. 
>
> Regards, 
> Chris 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bca0bb0b-5534-4824-ab25-24797c0bb22b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to