Skip to content

Commit

Permalink
(dsccommunity#567) Fix CICD
Browse files Browse the repository at this point in the history
CICD in Azure Devops appears to be broken. This Pull Request is intended
to help fix it.
  • Loading branch information
RandomNoun7 committed Feb 25, 2020
1 parent 59e8dcc commit 77650a5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 10 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-Tools'
)
foreach($feature in $features) {
Write-Host $feature
Install-WindowsFeature -IncludeAllSubFeature -Name $feature -Verbose
}
name: InstallWebServerFeature
- task: PowerShell@2
name: test
Expand Down
1 change: 1 addition & 0 deletions tests/TestHelper/CommonTestHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77650a5

Please sign in to comment.