tom.peters Posted May 1, 2013 Report Share Posted May 1, 2013 Good Day! I have been writing and testing triggers in Plastic; all programs are in C# console EXE's. They work well. I created a before-mkbranch wherein I get the repname using: string repName = System.Environment.GetEnvironmentVariable("PLASTIC_REPOSITORY_NAME"); This works fine in my before-mkbranch trigger, but using the same code on the same repository in my before-checkin trigger, the code return nothing. I have done all sorts of diagnostics and it makes no sense. I know the correct program is called for before-checkin because I get the expected output (debugging) during my tests. I can get PLASTIC_COMMENT and PLASTIC_USER with no problem. I just cannot get PLASTIC_REPOSITORY_NAME. Any ideas? Tom Link to comment Share on other sites More sharing options...
calbzam Posted May 2, 2013 Report Share Posted May 2, 2013 Hi Tom, PLASTIC_REPOSITORY_NAME environment variable is not available using before-checkin trigger. You can check the available variables in each trigger: http://plasticscm.com/guides/triggers/main.shtml#Chapter4:Triggerreference The PLASTIC_CHANGESET variable contains the specifications for the changesets that were created, separated by semi-colons (';'). This way you can get the repository name Best regards, Carlos Link to comment Share on other sites More sharing options...
tom.peters Posted May 3, 2013 Author Report Share Posted May 3, 2013 Hi Carlos - Right, you are! I swore I checked the triggers guide. Oh, well, sorry about that. Thanks, Tom Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.