Search code examples
powershellsharepointjenkinssharepoint-2010

Jenkins with Sharepoint Solution Deployer


I can't seem to figure out why if I run the script in Jenkins (local machine), then I get the

The Windows PowerShell snap-in 'Microsoft.SharePoint.PowerShell' is not installed on this machine.

But if I run it outside Jenkins (i.e., running powershell from start menu), then it's fine. I looked at the GAC and the .dll is there.


Solution

  • The solution I found is that since Jenkins runs 32-bit. I had to install JRE 64bit and point jenkins to run at 64bit so the powershell will run at 64-bit.

    Using SharePoint for PowerShell always has to be 64-bit.