how does TC build with Clearcase

Hi,
I have been told the following and wondered if it was correct.

When TC does a build first a cleartool update is done on the snapshot view. Then the contents of the view are copied to cache that is made up of the contents of the view plus some extra TC data. And from this the source code is copied to the working directory on each build machine which is where the build agent compiles the code.

Is this correct? There seems a lot of copying going on. Why can't the build agent work on the snapshot view (in the case of a single build agent). Or where there are multiple build machines, the working directory be copied from the view?

Regards,

John

3 comments

Hi,

If you do not want to use caches you can restart your TC server with "-Dclearcase.disable.caches=true" JVM option, but it will enlarge the build duration.

Why can't the build agent work on the snapshot view (in the case of a single build agent). Or where there are multiple build machines, the working directory be copied from the view?


We have such issue in our tracker, you can vote for it: http://youtrack.jetbrains.net/issue/TW-9355

0

Hi Maxim,

we do have that set in the startup options.
So does that mean we are building from the snapshot view?
When you say "enlarge the build duration" - the build will take longer? can you explain why that is?
Perhaps we might be better not disabling the CC cache ....

John

0

John,

TC saves the name of the latest version of the needed files in cache and use it later, so if you disable cache TC will determine the latest version via the cleartool commands and it will take a longer time than reading from the cache.

BTW, the agent-side ClearCase checkout is now available in the latest EAP (build 15193), so you can try it: http://confluence.jetbrains.net/display/TW/Download+Latest.

0

Please sign in to leave a comment.