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

How to find changeset UUID from command line?

How does one find the UUID of a changeset from the command line?

Consider a case where I want to selectively accept changesets for a build instead of taking them all. I can use scm status to show the changesets & baselines that I can possibly accept...but there are no UUIDs given for the listed changesets.

I can't rely on the alias because, as I understand it, these aliases are unique to the client environment where the commands are being run & I might need to run status in one environment and accept in a different environment.

I've tried using the -I flag but that didn't seem to do anything.

0 votes



2 answers

Permanent link
Have you tried the "--show-uuid y" flag?

See the "source control command line reference" help page.

Cheers,
Geoff

On 2/21/2011 11:53 AM, carej wrote:
How does one find the UUID of a changeset from the command line?

Consider a case where I want to selectively accept changesets for a
build instead of taking them all. I can use scm
status to show the changesets& baselines that I
can possibly accept...but there are no UUIDs given for the listed
changesets.

I can't rely on the alias because, as I understand it, these aliases
are unique to the client environment where the commands are being run
& I might need to run status in one environment and accept in a
different environment.

I've tried using the -I flag but that didn't seem to do anything.

0 votes


Permanent link
Its possible to get more information from many of the scm commmand lines by using --json (or -j)

For example, normal command, gives the alias:

>lscm list changesets -r jazz224     
 Change sets:
       (1139) ---$ who dun it "add comment for fun" 08-Apr-2013 02:47 PM
...etc

-json command gives UUIDs and URLs and other information..

>lscm list changesets -r jazz224 --json

lscm list changesets -r jazz224 --json
{
    "changes": [
        {
            "author": "who dun it ",
            "comment": "add comment for fun",
            "modified": "08-Apr-2013 02:47 PM",
            "state": {
                "active": false,
                "complete": true,
                "conflict": false,
                "current": false,
                "potential_conflict": false
            },
            "url": "https:\/\/jazz224.bla.bla.bla:9443\/ccm\/",
            "uuid": "_m1_0sKBJEeKp18Qpy_B3Ug"
        },


The uuid show for each "thing" is its uuid, it would then be possible to parse the output and extract the UUID you want for another command, like a deliver etc.

This acticle has more specifics about the json output: https://jazz.net/library/article/1031/

0 votes

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

Question asked: Feb 21 '11, 11:53 a.m.

Question was seen: 6,006 times

Last updated: Apr 08 '13, 10:34 a.m.

Confirmation Cancel Confirm