tags:

views:

454

answers:

3

Hi,

At my new company, the CMS is ClearCase. I've worked with Perforce before and it had a nice built-in notification mechanism for the team to keep up-to-date with files that changed in the project. I'm trying to have something equivalent in ClearCase. I would like to know if someone have achieved this before.

Basically, there is three requirements :

  • Have a way to subscribe to a project. One receives only notification on projects it has subscribed to.
  • When someone deliver an activity, all the subscribers of the impacted project receive an email notification about that activity.
  • The email contain the list of the files affected by this activity. Each modified file has a link that perform a diff that shows what this activity change in this file.

So is someone is aware of a module/extension or any other existing way to put that in place or do I have to do all this manually with trigger and perl scripts ?

Thanks,

Martin

A: 

I am not sure if that already exist, I am sure it is not provided natively with the UCM product.
May be a more specialized forum like CMCrossroad have more informations, but you already put a question there ;)

Anyhow, the simplest way to implement such a notification would be to have a process following new baselines made on a stream.
Each baseline being composed of activities, it would be simple to list those.
Each baseline being easily compared with its previous baseline, it would be simple to list the file versions, and build the appropriate diff.

As for the users following a project, I would suggest as a "subscription mechanism" the list of views of one of the streams of a project: any user having a view on (one of the streams of) that project is potentially interested.

The general implementation principle would be through post-operation triggers, as described in the "Ten best triggers" article

VonC
Yes, I'm trying hard to find a way to do that... on CM Crossroad too ! It seems so normal to me to have such notifications, I cannot believe that a product such CC do not offer this out of the box (or another IBM product to work with CC). And I cannot beleive that all the ClearCase users out there are living with such notifications... But that for the pointer on the 10 best triggers. I saw it but I have still hope for a more lazy solution to this... Let<s see if anyone else have a take on this !
Martin
They are living without such notification because a/ other product offer a more complete "lifecycle" for activities: ClearQuest. b/ UCM per se does not rely that much on notification: each view points to a well-defined stream and is able to report (through update if snapshot) if something changed. c/ triggers are there to fill whatever specific feature you miss.
VonC
I think you have a point : ClearQuest. We are also using it, but being new with CQ, I have probable oversee some its features. I will take a closer look at it hoping it can help me. Thanks for your inputs.
Martin
A: 

AFAIK, almost all CC operations can have triggers (in Perl, IIRC) You need to add an email trigger to the deliver operation. Long, long time ago I saw a simple example. But you have to take care of keeping the subscription list and email the appropriate persons.

GClaramunt
You are right, trigger can be used to do this. But it is at the file level. since a project contains lots of file, it would be a nightmare to manager this triggers on eve (new) files. It would be nice if we could pour trigger at the prject level, but it does not exists...
Martin
+1  A: 

Hi Martin,

we wanted the same here, so we are using a trigger called ucm_complete_delivery.pl that can be found on CM Crossroads.

You need to apply this trigger to your PVOB (as it's a UCM trigger).

Once you have applied it, you need to define the following Custom Attributes on your UCM component(s):

auto_baseline_email [email protected],[email protected],etc...

It's a bit painful as the mailing list as to be maintained by hand (or you need to use group mail address), but it's better than nothing. :)

Cheers,

Thomas

Thomas Corriol