A Better Solution, Inc. - IBM Rational ClearCase Triggers

"Clearcase, Rational, clearCase consulting, ClearCase triggers, Jazz tools consultant, ABS, training, GSA, Rational, IBM, GSA, BM Rational Tools consultant, Clearquest, ClearCase training, CM, scm, ClearCase help, consulting, trainer, training, ClearCase guru, configuration management" "ClearCase triggers, RTC, Rational Team Concert, clearcase, CLEARCASE resume, trainer, consultant, clearcase, BM Rational Tools consultant, ClearCase training, GSA contract holder, Rational, IBM, CM, scm, ClearQuest Consulting, ClearCase help, consulting, trainer, training, ClearCase guru, configuration management" "triggers, ClearCase training, RTC, Requisite Pro, JAZZ, ABS, GSA Schedule holder, Rational, IBM, ClearCase training, CM, scm, ClearCase help, consulting, ClearQuest, BM Rational Tools consultant, trainer, training, ClearCase guru, configuration management"
PROTECT.sh   Print this page...
..

PROTECT.sh

When new elements are created in the VOB change the elements ownership to the owner of the VOB and change element permissions to appropiate for element_type.

NOTE:If a particular file_type is not implemented in your VOB then comment it out. Unspecified file_types will have origional permissions, but will have ownership changed.

Author:A Better Solution, Inc.
Email :support@abs-consulting.com
URL :https://abs-consulting.com
Date :April 08, 1998

This trigger script is expected to be called from a post-mkelem trigger.

Create an element global trigger and apply to post-mkelem like so (or similar):

cleartool mktrtype -ele -all -post mkelem 
 -c "Properly protect elements after they are created in VOB" 
 -exec "{path}/PROTECT.sh" PROTECT

Shortcut using...If using ClearTrigger...

If using ClearTrigger, you don't need to write ANY trigger code... Just turn on functionality bit (1) from the list of 25 Functionality Bits in the configuration file.

Read more on Policy without Triggers using ClearTrigger.