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

RTC-ClearCase: where is env variable CCASE_JAZZ_WORK_ITEMS

Hi,

When using ClearCase connector, we want to put the comment on a changeset into ClearCase too. Here is what I got from the Rational documentation:

"The ClearCase Synchronizer includes an environment variable that makes it possible to use work item information in ClearCase triggers. During each synchronization, the list of Jazz work items that are associated with changes that are being synchronized to Rational ClearCase are made available in the environment variable CCASE_JAZZ_WORK_ITEMS. Rational ClearCase users can use this variable in triggers that perform ClearCase actions. For example, a trigger can add the list of work items to check-in comments in Rational ClearCase or a trigger can create attributes for the work item information on new ClearCase versions created during the synchronization."

But I cannot find that CCASE_JAZZ_WORK_ITEMS.

I have checked the ClearCase environment variables with this script

foreach $key (sort keys(%ENV))

{

print "$key = ($ENV{$key})\n";

}

and a trigger calling the script when checking in to ClearCase. No CCASE_* environment variables are displayed.

How can I find the CCASE_JAZZ_WORK_ITEMS? Thanks.

Lin

0 votes



One answer

Permanent link
First, make sure you are using a version of the Synchronizer that has
this feature. I'm not sure what version it was introduced, but a way to
verify is to look at the on-line help of your Eclipse client, and see if
that environment variable is documented there. (For the ClearCase
Synchronizer, we deliver all of the documentation with the Eclipse
on-line help, so you always have the help that is valid for the
Synchronizer version you are currently using).

Rather than the "foreach" check, try:
echo %CCASE_JAZZ_WORK_ITEMS%
in your script (assuming you are on windows), or
echo $CCASE_JAZZ_WORK_ITEMS
if you are on Unix.

Cheers,
Geoff



On 5/20/2010 11:38 AM, Raistlin wrote:
Hi,

When using ClearCase connector, we want to put the comment on a
changeset into ClearCase too. Here is what I got from the Rational
documentation:

"The ClearCase Synchronizer includes an environment variable
that makes it possible to use work item information in ClearCase
triggers. During each synchronization, the list of Jazz work items
that are associated with changes that are being synchronized to
Rational ClearCase are made available in the environment variable
CCASE_JAZZ_WORK_ITEMS. Rational ClearCase users can use this variable
in triggers that perform ClearCase actions. For example, a trigger can
add the list of work items to check-in comments in Rational ClearCase
or a trigger can create attributes for the work item information on
new ClearCase versions created during the synchronization."

But I cannot find that CCASE_JAZZ_WORK_ITEMS.

I have checked the ClearCase environment variables with this script

foreach $key (sort keys(%ENV))

{

print "$key = ($ENV{$key})\n";

}

and a trigger calling the script when checking in to ClearCase. No
CCASE_* environment variables are displayed.

How can I find the CCASE_JAZZ_WORK_ITEMS? Thanks.

Lin

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: May 20 '10, 11:34 a.m.

Question was seen: 7,103 times

Last updated: May 20 '10, 11:34 a.m.

Confirmation Cancel Confirm