KBEA-00026 - Changing the location of the diskcache directory

Article ID:360032828512
1 minute readKnowledge base
On this page

Summary

The default location of the diskcache directory is whatever the system temp directory is. This is usually /tmp on Unix and whatever $TEMP is on Windows.You want the diskcache to use a different location.

Solution

Use "ecconfig -tempdir " to change the location of both the diskcache and the temp directory.

If for some reason you only want to change the diskcache directory then

In <install location ><arch>/bin/rundiskcache, find the line:

diskcacheman directory $::opts(tempdir)

And change the $::opts(tempdir) to a full path of where you want the new location to be.

Examples

"diskcacheman directory c:/foo/bar" causes the diskcache to put its files in the folder c:/foo/bar on Windows.

"diskcacheman directory /var/tmp" puts files in /var/tmp on Unix.

Applies to

  • Product versions: 4.2 and later

  • OS versions: All

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.