Question about RTC build definition and build engine
Hi
I am new to RTC build functionality and I am going through some tutorials to setup the build process. The development environment here is structured in RTC as follows: there's a "public project" say Proj_A, the entire development team has read/write access to it and it has 4 streams each having one component CompA1 thru CompA4. There's a restricted project say Proj_B that can be accesed by only a few selected developers who allowed read access and it has one stream with one component CompB. I need to create a new build definition in Proj_B project. The build script requires reading files in Comp_A1 in Proj_A. I need to create build definition and build engine in Proj_B to get the latest version of files in CompA1 and CompB. Is this possible to do ? If so how do I create the build definition and build engine ? Any help is much appreciated. Thank You npotti |
9 answers
Geoffrey Clemm (30.1k●3●30●35)
| answered Jan 13 '10, 10:53 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Each build runs under a user account defined in the jbe that is
performing the build. So the build user account needs to have read access to the components (read access to a component is controlled by the project area that owns the component). Cheers, Geoff npotti wrote: Hi |
Jeff
Thanks for your response. My question is how to speficy component load rules to load a component from another project. In build definition under Jazz Source Control tab there's a section for load options with a field Component load rules in it. It only shows component from Proj_B. Are there any other fields or options available ? Any help is much appreciated. Thank You NP Each build runs under a user account defined in the jbe that is Hi |
Geoffrey Clemm (30.1k●3●30●35)
| answered Jan 14 '10, 12:53 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The load rules allow you to select the subset of components from the
build workspace (specified at the top of the Jazz Source Control page of the build definition editor). So you'd need to add the components from project A to that workspace in order for them to be selectable in the load rules section. Cheers, Geoff npotti wrote: Jeff |
Is there any distinction or advantage in adding the load rules to the
stream off which the build workspace flows? Freddy Geoffrey Clemm wrote: The load rules allow you to select the subset of components from the |
Geoffrey Clemm (30.1k●3●30●35)
| answered Jan 14 '10, 5:08 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The component load rules apply to the build workspace, not to the stream
off which the build workspace flows. So I don't see that you have a choice here. Cheers, Geoff Freddy wrote: Is there any distinction or advantage in adding the load rules to the |
Geoff
While configuring team build process in RTC I ran into two issues: 1. I added a component from another project to the build repository repository workspace which is specified in the build definition, Jazz Source Control, Build Workspace section. When the build request is executed the component is removed from the reository workspace. What's causing the component to be removed ? 2. In build definition, Ant, Ant Configuration, Ant arguments I included the lib folder with -lib option. The build fails and it gives this error - This appears to be an antlib declaration. Action: Check that the implementing library exists in one of: -D:\RTC 2.0.0.1 TeamConcertBuild\TeamConcertBuild\buildsystem\buildengine\eclipse\plugins\org.apache.ant_1.7.0.v200803061910\lib -C:\Documents and Settings\Administrator\.ant\lib -a directory added on the command line with the -lib argument It appears the -lib path is not taking effect. Can you please help with these isues ? Thank You NP The component load rules apply to the build workspace, not to the stream Is there any distinction or advantage in adding the load rules to the |
Geoffrey Clemm (30.1k●3●30●35)
| answered Jan 15 '10, 4:08 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I'll have to defer those two questions to the RTC Build team.
Build team? Cheers, Geoff npotti wrote: Geoff |
npotti wrote:
1. I added a component from another project to the build repository I assume your build is configured to accept changes into the build workspace. Accepting changes will adjust the components in the build workspace to match up with what is in the stream. So if you have added a component to the build workspace but not to the stream that the build workspace is accepting from, the component will be lost when you run a build. It might be possible to get around this issue by having the build workspace accept changes from multiple streams, but I have never done that myself, so I can't give a definite answer. |
David
Thanks a lot for your help. I was able to run the build successfully after I adding the component to the stream which is the flow target for build repository workspace. NP npotti wrote: 1. I added a component from another project to the build repository I assume your build is configured to accept changes into the build workspace. Accepting changes will adjust the components in the build workspace to match up with what is in the stream. So if you have added a component to the build workspace but not to the stream that the build workspace is accepting from, the component will be lost when you run a build. It might be possible to get around this issue by having the build workspace accept changes from multiple streams, but I have never done that myself, so I can't give a definite answer. |
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.