From adce30bd30266b5468a4710958bf9c4739113211 Mon Sep 17 00:00:00 2001 From: Bill Hurt Date: Fri, 21 Feb 2020 15:34:24 -0800 Subject: [PATCH] (#567) Fix CICD CICD in Azure Devops appears to be broken. This Pull Request is intended to help fix it. --- CHANGELOG.md | 1 + azure-pipelines.yml | 11 ++++++++++- tests/TestHelper/CommonTestHelper.psm1 | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee12d4e7e..69c00d896 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md) - xWebAdminstration - Integration tests are running on more Microsoft-hosted agents to test all possible operating systems ([issue #550](https://github.com/PowerShell/xWebAdministration/issues/550)). + - Fix a few lingering bugs in CICD ([issue #567](https://github.com/PowerShell/xWebAdministration/issues/567)) ### Changed diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 61a27352e..fbac67738 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -251,7 +251,16 @@ stages: - powershell: | Set-Service -Name wuauserv -StartupType Manual -Verbose Start-Service -name wuauserv -Verbose - Install-WindowsFeature -IncludeAllSubFeature -Name 'Web-Server' -Verbose + $features = @( + 'Web-Common-Http','Web-Health','Web-Performance', + 'Web-Security','Web-AppInit', + 'Web-CGI','Web-ISAPI-Ext','Web-ISAPI-Filter', + 'Web-Includes','Web-WebSockets', 'Web-Scripting-Tools', 'Web-Mgmt-Service' + ) + foreach($feature in $features) { + Write-Host $feature + Install-WindowsFeature -IncludeAllSubFeature -Name $feature -Verbose + } name: InstallWebServerFeature - task: PowerShell@2 name: test diff --git a/tests/TestHelper/CommonTestHelper.psm1 b/tests/TestHelper/CommonTestHelper.psm1 index c0c48f1d3..70feb0c8a 100644 --- a/tests/TestHelper/CommonTestHelper.psm1 +++ b/tests/TestHelper/CommonTestHelper.psm1 @@ -41,6 +41,7 @@ function Install-NewSelfSignedCertificateExScript Remove-Item -Path $newSelfSignedCertZipPath -Force } + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Invoke-WebRequest -Uri $newSelfSignedCertURL -OutFile $newSelfSignedCertZipPath Add-Type -AssemblyName System.IO.Compression.FileSystem