如何使用 MSBuild 指定密钥密码以便使用 Hudson?
我们刚刚设置了 hudson 服务器来构建 .NET 项目,该项目似乎工作正常,但是对于在签署程序集时需要密码的项目,我不知道如何告诉 hudson 密码是什么?
对于我们来说,开发人员第一次检查源代码并使用 Visual Studio 打开时会询问密码,这是如何存储的?我们可以在服务器上的某个地方放置一个秘密文件吗?
We have just setup our hudson server to build .NET projects which seems to be working fine, however for projects that require a password when signing the assemblies I can not figure out how to tell hudson what the password is?
For us the password is asked the first time a developer checks out the source code and they open with visual studio, how is this stored? Can we just place a secret file somewhere on the server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我通过以启动 tomcat 的同一用户身份登录服务器来解决这个问题(我必须更改配置并设置专用用户)。
然后,我手动构建了该项目,该项目引发了询问密码的对话框,但是,这似乎是一个黑客行为,而不是我可以放入脚本中的东西,如果我们的构建服务器发生变化,会发生什么,我不应该能够指定这个吗在源树的某个地方?
I managed to solve this by logging into the server as the same user that starts tomcat (I had to alter the configuration and setup a dedicated user).
I then manually built the project which raised the dialog for asking for the password, however, this seems like a hack and not something I can put into a script, what happens if our build server changes, shouldn't I be able to specify this in the source tree somewhere?
您必须使用 CA 颁发并存储在构建服务器的证书存储中的证书对其进行签名。 VS 制作的自发布测试必须有一个 gui 弹出窗口来输入密码,而构建服务器无法做到这一点,因为它是一项服务。
You have to sign it with a certificate that is issued from your CA and stored in the cert store of your build server. The self-issue test ones that VS makes have to have a gui pop-up for the password and the build server cannot do that since it is a service.
在我的 Vista 机器上,我能够打开“允许此服务与桌面交互”功能,然后当构建弹出对话框时,Windows 告诉我这一点,并允许我切换到“服务”桌面,单击“是”。
On my Vista machine, I was able to turn on the feature 'allow this service to interact with the desktop' and then when the build popped up the dialog, Windows told me about it, and allowed me to switch over to the 'service' desktop, in order to click 'yes'.