A Better Solution, Inc. - ClearCase Triggers

"clearcase triggers, clearcase scripts, clearcase tools, clearcase knowledge base, triggers, scripts, tools, knowledge base, clearcase, Clearcase, Rational, clearCase consulting, 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" "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" "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"
Helpful ClearCase triggers applied primarily by ClearCase Administrators to help create and enforce policy for their users. ABS provides triggers that define and enforce those policies. Here are a few triggers with their associated source code (written in Perl or Shell). Use as needed. Our gift to you. "clearcase triggers, clearcase scripts, clearcase tools, clearcase knowledge base, triggers, scripts, tools, knowledge base, clearcase, Clearcase, Rational, clearCase consulting, 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" "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" "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.pl  (Perl) (Shell)
#
# 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: Charles W. Clarke III (ABS)
# email:  charles@abs-consulting.com
# URL:    http://www.abs-consulting.com
# Date:   Apr. 08,  1998
#############################################################
# History: 04/08/98 : Created for A Better Solution, Inc.
#        : 11/19/02 : Made change to handle spaces in names 
#                   :   - thanx Marlene Trone
#############################################################

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

Create an element global trigger and apply to post-mkelem:

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

    cleartool mktrtype -ele -all -post mkelem  \
          -c "Protect all elements after they are created in the VOB." \
          -exec "{path}/perl {path}/PROTECT.pl" PROTECT

Shortcut using...

If using ClearTrigger, you don't need to write ANY trigger code... Just turn on this functionality bit (bit 1) in the configuration file.

Read more on Policy without Triggers using ClearTrigger.


View Trigger Code. (Perl) - (Shell)