更改在 Atlassian Bamboo 中执行构建脚本的用户
这是我的问题:
我有一个 python 构建脚本,构建一个 .air 包并将其部署在服务器上。如果我从 cmd.exe 窗口运行此脚本,则没有问题,文件已正确创建和部署。
但我想使用 Bamboo 能够在每次提交/推送更改时构建我的应用程序。我配置了它,但有一个严重的问题:.air 包已创建,但部署(使用结构脚本)未完成...我注意到该进程是由 cmd.exe 中的“管理员”和 SYSTEM 启动的槽竹。我认为这就是问题所在(也许系统找不到 ssh 主机或其他什么),所以我想知道是否有人知道如何将执行脚本的用户更改为“管理员”。
Here is my problem:
I have a python build script building a .air package and deploying it on a server. If I run this script from a cmd.exe window, there is no problem, the files are correctly created and deployed.
But I would like to use Bamboo to be able to build my app everytime I commit/push changes. I configured it but have a serious problem: the .air package is created but the deployment (with a fabric script) doesn't finish... I noticed that the process is launched by 'Administrator' in a cmd.exe and by SYSTEM trough Bamboo. I think that this is the problem (maybe SYSTEM cannot find the ssh host or whatever), so I wanted to know if someone knows how to change the user executing the script to 'Administrator'.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以更改bamboo 服务器运行的用户。我最近发布了一个答案,详细介绍了如何在 Windows Mercurial 全局钥匙串 .包装文件中有关 Windows 内容的所有文档都可以在 http:// wrapper.tanukisoftware.com/doc/english/props-nt.html 。
Yes, you can change the user that your bamboo server runs as. I recently posted an answer with details on how do just that in Windows Mercurial global keychain . All the documentation for the windows stuff in the wrapper file can found at http://wrapper.tanukisoftware.com/doc/english/props-nt.html .