What is the UUID of the current changeset?
We need to use scm to check-in changes to RTC via Windows DOS script. To be able to manipulate any changesets most scm commands need an ID or UUID of some sort. In particular we need to associate the changeset with a work item (known in advance) and then to deliver the changeset.
As we are always manipulating the latest or current changeset, is there a way of getting the UUID of the current changeset into an environment variable or an alias that we can use in the associate and deliver commands?
This is the sort of thing we would like to do. Is it possible?
As we are always manipulating the latest or current changeset, is there a way of getting the UUID of the current changeset into an environment variable or an alias that we can use in the associate and deliver commands?
This is the sort of thing we would like to do. Is it possible?
cd C:\Testing\Main call "C:\Program Files\IBM\TeamConcert\scmtools\eclipse\scm" login -r %URL% -n RTC_TEST -u %USER% -P %PASSWD% -c
call "C:\Program Files\IBM\TeamConcert\scmtools\eclipse\scm" checkin %FILENAME%
call "C:\Program Files\IBM\TeamConcert\scmtools\eclipse\scm" changeset comment -r RTC_TEST "A TEST COMMENT"
call "C:\Program Files\IBM\TeamConcert\scmtools\eclipse\scm" changeset associate -r RTC_TEST 19269
call "C:\Program Files\IBM\TeamConcert\scmtools\eclipse\scm" deliver -r RTC_TEST
call "C:\Program Files\IBM\TeamConcert\scmtools\eclipse\scm" logout -r RTC_TEST
One answer
In 4.0.6 (upcoming release) we have the capability to set a comment and associate a workitem to a change set when performing a checkin.
For now, you have to parse the output of the checkin command in you script to get to the UUID of the change set. To display the UUID of items specify the -u option: "scm -u y checkin ..." or use the -j/--json option: "scm checkin --json ..." which will print the output in json format.