|
PROT_LABEL_VER_CHECK.pl Make sure version cannot be removed if it has a matching protected label attached. Arguments: pattern_1 [pattern_2..pattern_N] | ||
| Author | : | A Better Solution, Inc. |
| : | support@abs-consulting.com | |
| URL | : | https://abs-consulting.com |
| Date | : | January 29, 2005 |
This trigger script is expected to be called from a pre-op trigger.
Create an element all trigger and apply to specified operations like so (or similar):
cleartool mktrtype -ele -all -pre rmver
-c "Prevent removal of versions with protected labels attached."
-exec "{path}\perl {path}\PROT_LABEL_VER_CHECK.pl '^REL_*'" PROT_LABEL_VER_CHECK

If using ClearTrigger, just add a line in the configuration file like the one below:
pre_rmver;R;;0;0;0;D;;N;;0;perl;{path}\PROT_LABEL_ELE_CHECK.pl '^REL_*';
Read more on Policy without Triggers using ClearTrigger.