1

I have a trigger set which fires when a delivery is completed. It sends an email with the information about the stream name, activity name etc. I also want to include the change set of the activity that was delivered. How do I do this? Which env variable would consist this information when a delivery is being done.

Thanks in advance.

clearcase
  • 91
  • 6

1 Answers1

0

It should be CLEARCASE_ACTIVITY.
(UCM activities are the official names for "change sets": when you access the "properties" of an UCM activity, you see a tab called "change set")

As that thread mentions, this only work for a post-op trigger, not a pre-op.

This technote illustrates the use of such a variable:

cleartool mktrtype -ucmobject -all -postop deliver_complete
  -mkhlink UndelAct@\TEST_PVOB,to=%CLEARCASE_ACTIVITY% -nc
  trtype:UndelAct@\TEST_PVOB

However, that would give you the delivered activity (called "deliver.xxx"), not the source activities.
For that, you need to list all activities contributing to that delivered activity:
See "Finding which developer activities were delivered in a specific delivery"

cleartool lsact -contrib activityName@\aPVob

The OP clearcase adds in the comments:

It does not provide the list offiles that were delivered.

For that, you don't need the list of contributing activities.
You can simply describe the resulting baseline in CLEARCASE_ACTIVITY (the "deliver.xxx" one)

See "How to find files asssociated with a ClearCase UCM activity?":

cleartool describe -fmt "%[versions]CQp"  activity-title@\aPVob
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I am using a perl script to get this information and send an email. I am pulling the CLEARCASE_ACTIVITY environment variable but it only finds the name of the activity i.e deliver..@/. It does not provide the list offiles that were delivered. – clearcase Nov 14 '13 at 22:24
  • I just saw your edit. I will check out the link that was provided – clearcase Nov 14 '13 at 22:28
  • @clearcase I just edited, again, my answer, to address your comment. – VonC Nov 14 '13 at 22:30