It's all about the answers!

Ask a question

RTC 4.0.2 - How to get change sets for a work item exported to an external folder?


R jose (2158) | asked Aug 22 '13, 1:38 p.m.
https://jazz.net/forum/questions/110496/build-definition-to-build-a-work-item

I am building on my above question as I didn't fully understand on the answer.  
Here are two precise questions:

1) How do I get the changes sets for a work item exported to an external folder? Is it possible with SCM to regex out the files and save them in an external folder?

2) We only deploy the change sets to production i.e. files that been touched by the work items. Say there are 10 components and each time we deploy 18-20 work items. 

I want to diff 10 components between development and integration streams and find all the change sets and export them to external folder.  The external folder should finally look like

Deployment (folder)
-------------------------------------------------
Comp1/test/test1.jsp
Comp1/test/test2.jsp
Comp1/WEB-INF/classes/com/package/Test1App.class

Comp2/test2/test4.jsp
Comp2/test2/test8.jsp
Comp2/WEB-INF/lib/testing.jar

Comp3.....etc etc

As you see, now have a list of change sets(for all the 10-20 Work items) in a deployment folder.  We can then export to server , compress them up and deploy them. if there are no changes for a components then there will be no entries in the external folder.   

Is this possible using RTC 4?

One answer



permanent link
Tim Mok (6.6k38) | answered Aug 22 '13, 2:59 p.m.
JAZZ DEVELOPER
If you're using the command line as was suggested in your other question, you won't be able to achieve what you want. The real issue is getting files from change sets associated with a work item means you have no configuration context. You'll need a workspace or stream to give context to where the files reside. You could use the plain Java API to retrieve the content but you would still need a workspace to resolve the file paths.

You could use a workspace for all this work like the RTC builds do. When you deploy, you would want your workspace updated with the change sets from the work items. You can use the workspace to resolve file paths and extract the files you want to deploy. Of course, you may run into issues with gaps when accepting from work items instead of working from an integration stream.

Your answer


Register or 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.