配接器和環境變數

配接器需要環境變數才能執行應用程式指令。在配接器範本中,環境變數會列在 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 中,環境變數會儲存在環境中。建立配接器之前,請先為應用程式環境變數建立環境。


意見