Title: ClearCase Checkin trigger doesn't allow deliver
Tags: version-control;clearcase;clearcase-ucm
Question: I created a preop checkin trigger that checks the comment to make sure it isn't empty.  This works just fine.

However, when I do a deliver from the dev stream to the int stream, the trigger stops at the check in process.  Is there a way around this?  I am assuming that the comments while checking in for a deliver process are blank.


Here is the accepted answer: You could setup a preop trigger on the ```deliver_start``` operation kind (opkind) in order to set an environment variable which would act as a flag.

When that environment variable is set, your original script (the preop checkin one) could simply return true (ie does nothing and allows the checkin to proceed)

Another postop trigger on ```deliver_cancel``` and ```deliver_complete``` opkinds will cancel that environment variable.  

See an example of pre and postop trigger on deliver events here.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2012:00:03/29/12', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<version-control><clearcase><clearcase-ucm>', 'Title': "ClearCase Checkin trigger doesn't allow deliver", 'ViewCount': 334, 'id': 9932412, 'user_AboutMe': '', 'user_AccountId': 1348381.0, 'user_DisplayName': 'Rubasu', 'user_Reputation': 379.0, 'user_Views': 37.0, 'user_id': 1288674.0}}