导致 TFS InvokeProcess 构建活动在其他凭据下运行 [英] Cause TFS InvokeProcess Build Activity to run under other credentials
本文介绍了导致 TFS InvokeProcess 构建活动在其他凭据下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们使用 InvokeProcess 操作自定义了构建过程,该操作运行用于部署我们的 sln 的 powershell 脚本.
We have customized the build process with a InvokeProcess action that runs a powershell script that deploys our sln.
问题是此脚本必须在给定用户(而不是 tfsbuild 用户)下运行.
Problem is that this script must be run under a given user (not the tfsbuild user).
我们怎样才能做到这一点?
How can we achive this?
- 备选方案 1:创建 InvokeProcess以不同的用户身份运行 -
- 备选方案 2:自行制作 powershell 脚本以不同用户身份运行
问题是我不知道该怎么做.
Problem is that I have no idea of how to do any of this.
推荐答案
我已经创建了一篇关于如何实现此目标的博客文章:自定义 Team Build 2010 – 第 9 部分:模拟活动(在其他凭据下运行)
I have created a blog post on this how you can achieve this: Customize Team Build 2010 – Part 9: Impersonate activities (run under other credentials)
这篇关于导致 TFS InvokeProcess 构建活动在其他凭据下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文