It's all about the answers!

Ask a question

changeset delivery through java


0
1
sundarrajan rangarajan (3134) | asked May 11 '12, 6:00 a.m.
retagged Jun 14 '12, 2:58 p.m. by Evan Hughes (2.4k1318)
Hi,
There is a need for us to automate the code delivery process in java.
we have 13 development streams and one integration stream.
on monthly basis we would deliver changes from these 13 streams in to the integration stream. so far, we have been doing this manually. we do this by creating 13 repository workspaces for 13 streams and after accepting the changes, we will change the flow target to integration stream and start deliver the change sets one by one provided the change sets met required approvals. this takes lot of time as we do this manually.

I have a logic for doing this . but i don't know how to approach this in java.
my logic is ,..
1. At the end of the month , i will accept all the changes in my 13 repository work spaces .

2. After accepting ,I will find the total number of change sets delivered in the month by comparing the 13 development streams and integration stream and the output will be in change lo file

3. now comes the java program. i will loop through the list of change sets by reading the work item number in the change log file.
(up to this ,I know how to do in java)


4. for every change set i read , I have to change the flow target to integration stream programatically and i will deliver the change set to integration stream ( from this point onwards, i have no idea which class to use)

5. Change sets can be delivered only if it meet the required approvals


please help me and let me know how to proceed

Thanks,
Sundar

One answer



permanent link
Arne Bister (2.6k12832) | answered Jun 14 '12, 2:35 p.m.
JAZZ DEVELOPER
Hi,

the supported API for SCM currently is the CLI (such as >lscm). The plain java calls for delivering change sets actually need a lot around them to make delivery workable. As of 3.0.1 it also called some internal classes not in the external API.

For your use case, please look at this article 649.
Depending on which version of RTC you use, non-conflict delivery between streams can be done without using a repository workspace in between since RTC 3.0.1

Does this answer your request?
- Arne

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.