适配器与环境变量

适配器需要环境变量才能运行应用程序命令。 在适配器模板中,XML 文件的 <template> 节的 <env> 元素中列出了环境变量。

例如,对于 ClearCaseBaseline 适配器,ClearCaseBaseline.xml 文件中列出了下列环境变量:

<template>
<!-- Template section, these are parsed out of the final xml. 
Use the list below to help identify the variables needed to run this interface
if you are integrating it during a regular BuildForge step.
-->
<env name="VIEW" value="my_adaptor_view" />
<env name="VOB_PATH" value="\AdaptorVob" />
<env name="CCSERVER" value="BFServerName" /></template>

在 Build Forge 中,环境变量存储在环境内。创建适配器之前,请为应用程序环境变量创建一个环境。


反馈