将 WSP 文件远程部署到 SharePoint 2010?
我每天晚上在构建服务器上创建一些 WSP 文件,并希望将它们自动部署到 QA 环境。
在 SharePoint 2007 中,除了丑陋的 psexec-workarounds 之外,没有其他方法可以远程部署 WSP 文件。
SharePoint 2010 对此有改善吗?我可以以某种方式利用 PowerShell 的东西吗?
我的构建服务器不属于 SharePoint 场。它甚至不运行相同的 SharePoint 版本(它运行独立的 Foundation,而真正的服务器场运行 Standard)
(注意:SO 上有一些关于此的问题,但它们是关于 WSSv3/SP2007 并且不适用)
I create some WSP Files on a build server every night and would like to automatically deploy them to a QA Environment.
In SharePoint 2007, there was no way to remote deploy WSP Files except for ugly psexec-workarounds.
Has this improved with SharePoint 2010? Can I utilize the PowerShell stuff somehow?
My build server is not Part of the SharePoint farm. It doesn't even run the same SharePoint version (It runs a standalone Foundation, whereas the real farm runs Standard)
(Note: There are some questions on SO about this, but they are about WSSv3/SP2007 and don't apply)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过 PowerShell 远程处理解决。 WSP 仍然需要转到服务器,并且 Add-SPSolution 等需要在该计算机上运行,但我现在可以从构建服务器执行此操作。
Solved through through PowerShell remoting. The WSP still needs to go to a server and Add-SPSolution et al needs to run on that machine, but I can now do that from the build server.
我创建了一个在构建服务器上运行的构建后事件,该事件将 WSP 文件复制到测试服务器的特定目录中。进入测试服务器后,(Windows Server) 计时器作业会查找 WSP 文件,并使用 STSADM 命令安装它们。有时我们会遇到删除解决方案的问题,因为我还没有找到一种简单/优雅的方法来检查解决方案是否已正确删除。通常我运行命令来删除解决方案。第二次运行然后安装。
I have create a post build event that run on our build server that copies the WSP file to our test server in a specific directory. Once on the test server, a (Windows Server) timer job looks for the WSP file and a STSADM command installs them. Sometimes we run into issues removing the solution since I haven not found an easy/elegant way to check if the solution is properly removed. Usually I run a command to remove the solution. Run it a second time and then install.