Load rules in JBE aren't working as expected
I have a stream with > 150 components. I would like to load only certain components(50). So I "Generated" a Load rule using Eclipse with the loaded components.
I used this load rule in Build definitions, but it didn't work as it was trying to load the selected components and excluding the others components (names) but loading the contents of excluded components
I started adding the following for "Exclude" components in the load rule like below
My questions are the following:
I used this load rule in Build definitions, but it didn't work as it was trying to load the selected components and excluding the others components (names) but loading the contents of excluded components
I started adding the following for "Exclude" components in the load rule like below
<itemLoadRule alternateName="Development">
<component name="Development" />
<item repositoryPath="/.project" />
</itemLoadRule>This works but fails for components which doesn't have .project file (obviously)
My questions are the following:
- Are there any ways to exclude components without entering one by one in the load rule file?
- How can this be maintained for newer components?
Accepted answer
Please see comment 5 and comment 7 in Load workspace from load rules file behaves differently when performed by a build (371621).
What you would need to do is add the components you do not want to load to the list of "Components to exclude" on the "Jazz Source Control" tab of the build definition; or if using the 'TeamFetchTask' Ant task, you can use the 'componentsToExcludeByName' or 'componentsToExcludeByUUID' Ant property. The other option is to modify the build workspace to only include the components you intend to load during a build.
Comments
Karthik Krishnan
Jun 17 '16, 11:26 a.m.