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

Modify content in Stream programmatically without workspace

 Dear Team,


I have come across a code snippet developed by colleague which can modify the content of stream without workspace.
I was in an impression that, without workspace we shall not be able to deliver any content programmatically like we do manually from eclipse client. But there seems to be way.
I would like to understand, what is happening under the hoods?

one thing I noticed, when doing this way is,
I see the component is always shown as "*" even though there are no changes to this component.

is there any shortcomings doing this approach?

Thanks

0 votes


Accepted answer

Permanent link
Using the API allows usually more freedom in what you can do. You implement your own implementation of a "repository workspace". The files might sit in a zip file or just somewhere on disc.

 Using the API, you can upload code, create change sets, compare and deliver them to a Stream. 

I have used this in the WorkshopSetup for the EWM Extensions workshop. 

I have used the same code in this tool https://github.com/jazz-community/ewm-scm-utils
and in this tool to some extent: https://github.com/jazz-community/AnalyzeSCMContent


What your poor mans implementation of an auxiliary repository workspace will not be able to do, at least not easily, is to deliver changes with conflicting incoming changes, merging etc.

vinitha dsouza selected this answer as the correct answer

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
× 12,023

Question asked: Nov 28 '23, 7:20 a.m.

Question was seen: 442 times

Last updated: Nov 28 '23, 9:14 a.m.

Confirmation Cancel Confirm