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

SCM Migration Tool : How to deliver a file as a changeset to a component in RTC SCM using APIs.

Hello Team,

I have a usecase wherein I need to checkIn and deliver a given file as a ChangeSet to the mentioned component.

It is a migration process, from one system to RTC SCM. so the files are in my local drive. I need to checkin and deliver each file as a new changeset to that mentioned component.

Are there any RTC APIs to do this ?

Request you to kindly assist on this.

Thanks.

0 votes



One answer

Permanent link

I was going through the following URL : https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/

I have a similar requirement, but instead of taking the files from the archive, we need to take the files from a given location and have a changeset and deliver the same. What are the alternative APIs to convert files to changeset ?

Please assist me on this.

0 votes

Comments

The following link may also help: http://thescmlounge.blogspot.com/2013/10/committing-content-to-rtc-scm-with-sdk.html


By the way, any reason why you do not want to use the scm commandline tool? It has all the commands you are asking for.

1 vote

It does not matter where you get the files from, the code in https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/ does the trick if you provide the data as a output stream.

1 vote

I was trying the example in : http://thescmlounge.blogspot.in/2013/10/committing-content-to-rtc-scm-with-sdk.html.

What is the actual path that must be given ? I have tried with various paths(absolute, relative and WS also...but it is still failing)
But when giving the remote path, the code is failing with the following error :

Exception in thread "main" java.lang.RuntimeException: Could not resolve path [testCs/ab_ca_algo.java]
    at test.TestClass.findRepositoryPath(TestClass.java:124)
    at test.TestClass.main(TestClass.java:67)

Can someone please help :(

Thanks

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
× 10,938
× 1,202

Question asked: Jul 13 '17, 7:53 a.m.

Question was seen: 2,721 times

Last updated: Jul 17 '17, 4:14 a.m.

Confirmation Cancel Confirm