rencore / SharePoint-Solution-Deployer

SharePoint Solution Deployer (SPSD) helps you to deploy SharePoint solution packages (.wsp) to multiple SharePoint environments. It deploys, retracts and upgrades one or more WSPs and can be extended to perform additional custom tasks in PowerShell before or afterwards. Unlike the most of the available scripts on the net, it performs all necessary prerequisite checks and post-deployment actions on all servers in the farm to assure the deployment runs smooth.
http://spsd.codeplex.com
Microsoft Public License
50 stars 30 forks source link

Make SPSD usable in non Console host #23

Closed msa48 closed 6 years ago

msa48 commented 6 years ago

This pull request contains various changes in SPSD scripts:

  1. Small bugfixes and spelling issues in comments
  2. Refactor three functions: GetEnvironmentFile, GetVariablesFromFile and LoadEnvironment to more clear responsibility. Now GetEnvironmentFile only find what file will be readed, GetVariablesFromFile only parse and load variables from input file and LoadEnvironment orchestrate them.
  3. A major change is rewritten Log function. Before this, using SPSD in build agents (TFS) doesn't output anything in TFS console. Also i come back logging into file when SPSD run in AppMode. Later this feature was removed in 9109bfa14c8585fdf733b71789a5b98fa54b8b95
  4. Because TFS run every powershell script with a Verbose log level, all sharepoint commands and some others gave additional outputs in console. This issue was solved by explicitly turn off Verbose log level in these commands
  5. Updated SPSD version number because significant changes

Resulting screenshot: screenshot-2018-1-13 release-36 - visual studio team services

Existing issues

    2018-01-13T09:05:22.3537558Z     'XXXX.wsp' (farm solution)
    2018-01-13T09:05:22.3547527Z       Updating...Done
    2018-01-13T09:05:22.3617567Z       Waiting to finish job 'solution-deployment-XXXX.wsp-0'........................Finished
    2018-01-13T09:05:22.3647547Z       Checking deployment...Ok
    2018-01-13T09:05:22.3657530Z       (00:00:54.0646162)
    2018-01-13T09:05:22.3667557Z   Running 'Deployment' actions
    2018-01-13T09:05:22.3687773Z     Recycling IIS application pool on server XXXXXX
    2018-01-13T09:05:22.3977576Z Deployment status for machine 'XXXXX' : 'Passed'
matthiaseinig commented 6 years ago

Thank you very much @msa48 for your contribution and sorry that the merge took a while! Great that this is now working also in VSTS