The ClearCase Connector runs cleartool commands to perform operations. As with any cleartool operation, pre-op triggers that are in place are also run during this process. If the success criteria for the trigger are not met, the synchronization fails as a result of the trigger failure. The synchronization process is not running interactively, so pre-op triggers that prompt for input can cause problems.
The ClearCase Connector post-processes the output from the cleartool commands that it issues, so extraneous output from triggers could cause the synchronization to fail. Post-op triggers that don't write to stdout and stderr are not problematic; those that do may be problematic, depending on the command and the nature of the output.
The ClearCase Synchronizer does not run in a view context, so triggers must be (re)written without the expectation of a view context.
Rational ClearCase triggers that might interact with synchronization should make use of one of the environment variables CONNECTOR_SYNCH and ATRIA_WEB_GUI, which are set during synchronization. All attempts in a trigger to interact with the user should be guarded by a check on one of these variables. If either is set, no interaction with the user should be attempted, and instead the best value that can be automatically computed should be used. If no value can be automatically computed, the script must fail. Synchronization sets the environment variable ATRIA_WEB_GUI to a value of 1, which disables clearprompt.
The ClearCase Synchronizer includes an environment variable that makes it possible to use work item information in ClearCase triggers. During each synchronization, the list of Jazz work items that are associated with changes that are being synchronized to Rational ClearCase are made available in the environment variable CCASE_JAZZ_WORK_ITEMS. Rational ClearCase users can use this variable in triggers that perform ClearCase actions. For example, a trigger can add the list of work items to check-in comments in Rational ClearCase or a trigger can create attributes for the work item information on new ClearCase versions created during the synchronization.
Did this help? You can provide feedback at Jazz.net (registration required): Comment in the forums or submit a bug