server.conf variables
Configure server variables for triggers in Unity Version Control.
阅读时间1 分钟最后更新于 10 个月前
You can define variables in the file. Their value passes on to the trigger script or program as environment variables. To define these variables, you need to add a section called to the file, which you can find in the server installation folder. The following example shows one way you can use this file:
server.confTriggerVariablesserver.conf<?xml version="1.0"?><ServerConfigData> <Language>en</Language> <WorkingMode>UPWorkingMode</WorkingMode> <ServerType>ServerTypeAll</ServerType> <TriggerVariables> <TriggerVariable name="TRIGGERS_PATH" value="c:\triggers" /> </TriggerVariables></ServerConfigData>
This sample defines a variable called with the value . For example, you can use this variable in the script field when you create a trigger:
TRIGGERS_PATHc:\\triggerscm trigger create before-checkin "code checker" "@TRIGGERS_PATH\stylecheck.bat"