Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Jazz Article: Using the SCM Command Line Interface in builds

I have questions regarding the Jazz article: Using the SCM Command Line Interface in builds

I have the following ws/stream configuration:

  My WS ---* Team Stream (components) *----* Build WS ---* Integration Stream


Flow direction is indicated by the asterisks. (I needed to use asterisks instead of arrowheads because the forum software mangled the text when I used gators and dashes)

My WS changes are delivered to Team Stream (components) which belongs to the project hosting the components used in the build. Build WS is the designated workspace for the build. I'm promoting built-proven snapshots to Integration Stream.

The build process for Build WS produces artifacts that I'd like to store back into Team Stream (components). I'm getting an error, however, during the build:
com.ibm.team.repository.common.TeamRepositoryException: Component MyComponent is accepting changes from multiple flow targets

where MyComponent is hosted in the Team Stream (components) project hierarchy.

I noticed that Recipe #1 in the article talks about flowing artifacts back into components, and I'm wondering why I'm getting errors. Do I need to programmatically disconnect My WS from Team Stream (components), or lock something to avert the exceptions?

I also tried routing the build artifacts from Build WS through My WS, but the multiple flow targets exception was still generated.

0 votes



3 answers

Permanent link
The following is incorrect. Please see my next post.

I believe that you should be able to specify the a default flow target for your build workspace. With that, the build will know which stream to accept from.

(Give this a shot, I'm checking around here to see if anyone else has a more authoritative answer)

e

0 votes


Permanent link
You're getting the complaint because the build workspace has flows with multiple streams that contain the same component. It doesn't know which version to accept so it's producing that error.

For your situation, I believe you can remove the flow to your Integration Stream, and then explicitly deliver your changes using the --target and --source options.

e

0 votes


Permanent link
Yes, Build pulls changes into the build workspace from all flow targets.
You can either remove extra flow targets, or if you really do want to bring in changes from multiple targets, you can edit the build workspace's flow targets to have scoped flows, so that it pulls some components from one target and others from another target. They should be non-overlapping.

> the forum software mangled the text when I used gators and dashes
Try unchecking 'Disable HTML in this post'.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 20 '10, 12:40 a.m.

Question was seen: 6,305 times

Last updated: Mar 20 '10, 12:40 a.m.

Confirmation Cancel Confirm