How do I run a TeamCity build as a specific user

前端 未结 2 1767
慢半拍i
慢半拍i 2021-02-19 19:48

I have a build configuration which deploys my code to a machine. Depending on which machine I am deploying to (e.g. dev/uat/prod), I need to run as a different user.

Ra

2条回答
  •  走了就别回头了
    2021-02-19 20:07

    The RunAs plugin combined with TeamCity 7's new Typed Parameters will let you make the password a "typed" parameter plugin.

    Then, when it's entered at the Run screen, it will not be visible in the build history.

    EDIT: Much later, as covered in the comments: You probably don't want to do this. Consider having separate pools which run as different users, and parameters to specify what builds are supported by what pools.

提交回复
热议问题