we want to push our dub packages building to our internal CI system (jenkins) the problem i am encountering now is, that dub uses a ./dub folder to cache dub packges in the user folder. AFAIK i cannot specifiy to use a local path to do that right ?

but the problem is, that multiple independant build jobs could be running and therefor interfering with each other on the local caches.

also i always want it to dub upgrade but since this somehow fails regularly due to alleged local changes that no one made i need to be able to rm the ./dub the hardway befor rebuilding. that makes the problem worse, since I could be interfering with another running build job using that shares cache folder..

what is the workflow supposed to be like in such a case ?