I am writing a pre-op trigger for formatting user's baseline name. How to get baseline name in pre-op trigger? Thank you!
This topic has been locked.
Pinned topic How to get baseline name in pre-op trigger
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Lumart 120000GQG6114 Posts
Re: How to get baseline name in pre-op trigger2013-01-07T11:27:39ZThis is the accepted answer. This is the accepted answer.This piece of information might be stored in the CLEARCASE_BASELINES environment variable (I am not sure whether this EV is available in a pre-op trigger).
Anyway, the baseline name is formatted on the "baseline template name" property of the UCM project.
If the user provides a name to the baseline, that name is attached to the other parts of the template (component, timestamp, etc.) in order to compose the actual baseline name.
Re: How to get baseline name in pre-op trigger2013-01-09T01:11:28ZThis is the accepted answer. This is the accepted answer.
brcowan 2000005CYP763 Posts
Re: How to get baseline name in pre-op trigger2013-01-09T14:59:12ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
If you are not using the GUI, you can parse the baseline name out of the CLEARCASE_CMDLINE environment variable, which is available when triggers are fired by command line operations.
If you need to do this in the GUI, I'm afraid that the only solution would be a custom CC wrapper script/executable at this time.
This statement confuses me, probably because something is getting lost in translation:
"Use baseline template is not flexible."
What kind of naming convention are you trying to enforce?
Advisory Software Engineer
ClearCase Software Advisory Team (SWAT)
IBM Software Group
550 King St
Littleton, MA 01460
Re: How to get baseline name in pre-op trigger2013-01-10T02:11:26ZThis is the accepted answer. This is the accepted answer.
- brcowan 2000005CYP
I define baseline rule is following statement.
1. baseline name is all capitalization.
2. baseline name is begin with "B_<first options>_<second options>".
3. "<first options>" contain one of the "SYNC,USERS.......".
4. "<second options>" contain one of the "LR13L,R4.4,R5.0....".