How to capture RTC change set id automatically via SCM CLI
7 answers
'outgoing-changes' contains the list of change sets and each change sets have list of changes. In your case the change set id is listed in the following path:
Comments
./scm.sh add wi "_fh_8oKwMEeewLNKffOsvgQ" 10565
Link created.
This worked.
What do you suggest here to capture the change_set automatically upon each check in.
Hi,
the way to capture the new change set id automatically is indeed via >scm show status and then parse the output. You will alway have to embed your scm commands in some scripting for parsing and conditions.
Alternatively you can create the change set first (and then capture and parse the output of that command:
https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fcreate_changeset_ex.html
and use that as input for a >scm checkin -c <changeset_id> ...
- Arne
As a part of testing these commands out, we did check-in a file then ran the below command using the -j option.
Finally we were able to achieve close to our requirement.
/usr/bin/python /root/jazz/scmtools/eclipse/script.py
(have written a python script which refer to the object value - ['workspaces'][0]['components'][0]['outgoing-changes'][0]['uuid'] and capture the UUID of outgoing change-set) and capture the UUID of outgoing changeset
Now we came across a strange issue where the scm is not showing the status.
Look like this is due to permission issue in RTC. Last day when the user was given full rights in RTC SCM project area.