Jump to content

Before CheckIn Trigger - Unable to get PLASTIC_REPOSITORY_NAME


tom.peters

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...