如何设置用户帐户以在 Team City 中运行构建运行程序

发布于 2024-08-20 07:07:01 字数 169 浏览 4 评论 0原文

我有一个单独的构建配置用于部署构建的文件。此配置使用命令行构建运行程序。我有一个将输出文件复制到另一台计算机共享的 bat 文件。输出文件由其他构建配置生成。问题是,当 team city 执行 Windows XP 复制命令时,我收到访问被拒绝错误。如何为选定的构建运行程序设置用户帐户?或者部署构建文件的正确方法是什么?

I have a separate build configuration used to deploy built files. This configuration uses command line build runner. I have a bat file that copies output files to another computer share. The output files are produced by other build configuration. The problem is that when team city executes Windows XP copy command i get access denied error. How can I set user account for selected build runner? Or what is the correct way to deploy build files?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我做我的改变 2024-08-27 07:07:01

您可以将 TeamCity 服务帐户配置为在具有共享更改/写入访问权限的适当特权域帐户下运行。

或者,滚动您自己的 Copy MSBuild 任务,根据一些额外参数执行模拟。

查看有关创建 MSBuild 任务的 MSDN 文档,您可以继承来自 Task ,然后实现 Execute() 方法。

You could configure the TeamCity service account to run under an appropriate privileged domain account which has Change/Write access to the share.

Alternatively, roll your own Copy MSBuild task that performs impersonation based on a few extra parameters.

Check out the MSDN docs on creating an MSBuild task, you can inherit from Task and then implement the Execute() method.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文