It's all about the answers!

Ask a question

RTC-ClearCase: where is env variable CCASE_JAZZ_WORK_ITEMS


Lin Ye (30632611) | asked May 20 '10, 11:34 a.m.
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

One answer



permanent link
Geoffrey Clemm (30.1k33035) | answered May 20 '10, 11:27 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

Your answer


Register or 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.