跳转至

AfterCheckIn

该接口调用的脚本应用程序用于影响签入后的数据。脚本应用程序只有在签入终止(完成、取消或超时)后才会被执行。

步骤

  1. 已创建新版本。
  2. 签入程序开始。
  3. 签入程序已完成。
  4. 调用 AfterCheckIn 接口并启动相关的脚本应用程序。

该脚本应用程序的命令行

没有代理时:

ScriptAfterCheckIn.exe /ConfigFileW:[absolute path of the interface file] /rd:[path of the server archive] /at:s

使用代理时:

ScriptAfterCheckIn.exe /ConfigFileW:[absolute path of the interface file] /rd:[path of the agent archive] /at:s

接口文件的描述

[User]、[Common]、[Component] 和 [Interface file] ]节在 接口文件的通用部分 中有详细介绍。

Specific 节

[Specific] 节包含组件工作目录的完整路径。

User 节

[User] 节包含具有相应(管理员)权限的执行用户的所有数据。其中记录了用户 ID、姓名、全名、域、电子邮件地址、本地登录、管理员和组。该节的键值在 接口文件的通用部分 中有详细介绍。

Common 节

[Common] 节包含执行脚本所需的数据。

最重要的一行是 Trigger=AfterCheckIn

随后是语言、ComputerName、RootDirAdmin、DirPrjData、DirTemp、超时、PathLog、PathExeVdog、SilentMode 和许可证。部分键值在 接口文件的通用部分 中有详细介绍。

Component 节

[Component] 节包含组件的所有数据。其中记录了 Dir、Id 和 ComponentTypeId。部分键值在 接口文件的通用部分 中有详细介绍。

Version 节

[Version] 节显示工作目录中签出的版本信息。

已记录 VersionUUID、HVersion、HVersionUserDefined、TimeStampLocal、TimeStampUtc、ChangeReason、UserId、UserName、UserFullName、UserDomainName、UserEmailAddress、计算机名、DNameStorage、State。

该节的键值在 接口文件的通用部分 中有详细说明。

相关主题