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"

#############################################################
# NOTIFY.tgr (Perl) (Shell)
#
# For file/actions where this trigger is attached, send mail
# to a well-known email list describing the action being taken.  
#
# Author: A Better Solution, Inc.
# email:  support@abs-consulting.com
# URL:    http://www.abs-consulting.com
# Date:   Mar. 5,  2001
#############################################################
# History: Mar 5, 2001 : Created for A Better Solution,  Inc.
#############################################################

NOTE: if using the Perl version and it is to be called from 
      the UNIX Operating System then the SMTP.pm module must also be made available,
      download it from http://www.abs-consulting.com/ftp/TRIGGERS/SMTP.pm.txt. 

This trigger script is expected to be called from a any preop or postop trigger.  
Either create an element "-ele -all" trigger and apply to specified operations like:  
 
   cleartool mktrtype -ele -all -post checkin -brtype main \  
         -c "Notify VOB-owner of checkins on the main branch." \      
         -exec {path}/NOTIFY.sh NOTIFY_MAIN_CI
   or    -exec "{path}/perl {path}/NOTIFY.pl" NOTIFY_MAIN_CI
 
or make an "-ele" trigger type and apply as needed:    
 
   cleartool mktrtype -ele -post checkout \       
         -c "Notify VOB owner if selected files get checked out." \       
         -exec {path}/NOTIFY.sh NOTIFY_CO
   or    -exec "{path}/perl {path}/NOTIFY.pl" NOTIFY_CO   
 
followed by:

   cleartool mktrigger NOTIFY_CO foo.c bar.c

Shortcut using...

If using ClearTrigger, you don't need to write ANY trigger code... Just add a line in the configuration file like any below:

post_MODIFY_ELEM;R;;0;0;X;
post_checkin;R;brtype<main>0;0;X;
pre_checkin;R;brtype<main>0;0;X;     (to be notified of attempts - even if they fail! )


View Trigger Code.  (Shell)  -  (Perl)