Personal build issue when setting team.scm.deleteDestinationBeforeFetch to false?
If we set team.scm.deleteDestinationBeforeFetch to false, then try to request two personal builds against one same build definition with two different workspaces, workspace A and workspace B in order, the files existing only in workspace A would not been removed when requesting the second build, is this normal behavior?
|
2 answers
If Workspace A had any top level elements loaded that are not in Workspace B, then they would remain.
Example: Workspace A has component X and Workspace B does not. Component X remains loaded. Workspace A has component Y with top level item Z loaded (a share) and Workspace B has component Y but Z is not a top level item to be loaded from it. The build is trying to not interfere with other steps you might have to load from other places (i.e. loading of tools used to build from the repository). Comments
Makson Lee
commented Jul 07 '14, 8:12 a.m.
My case is really simple, one component, with three change sets (A, B, C), each change set introduces a new file, test1.txt test2.txt test3.txt in order, workspace A contains all the change sets, workspace B contains only change set A, request build 1 with workspace A, and then request build 2 with workspace B, now, i suppose only test1.txt exist in the local sandbox on build machine, but the truth is, test2.txt and test3.txt are there too.
Depends on what are the roots being loaded. I am assuming you are not using loadrules to restrict what is loaded. If your component looks like:
Makson Lee
commented Jul 07 '14, 9:39 a.m.
My component looks like this,
You would need to use a load rules. Specifically you need an ItemLoadRule to load the component root directory. See https://jazz.net/library/article/1015
|
The real case is, we are working with Android source code, and we create load rules according to https://jazz.net/library/article/1196, i am not sure if we can still tune the load rule to meet the requirement.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
does the 1st build start before u request build 2?
Actually, i request build 2 after build 1 is complete.