开发者

Remote deploy WSP Files to SharePoint 2010?

开发者 https://www.devze.com 2023-01-04 14:22 出处:网络
I create some WSP Files on a build serve开发者_运维技巧r every night and would like to automatically deploy them to a QA Environment.

I create some WSP Files on a build serve开发者_运维技巧r 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)


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消