Skip to content

Commit

Permalink
Merge pull request #1585 from jenkins-infra/slide-patch-1
Browse files Browse the repository at this point in the history
Add install of .NET 3.5
  • Loading branch information
dduportal authored Dec 20, 2024
2 parents 7f37b7f + bfa8aed commit b8d7f11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions provisioning/windows-provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ $downloads = [ordered]@{
# Installation of make for Windows
& "choco.exe" install make --yes --no-progress --limit-output --fail-on-error-output;
& "choco.exe" install vagrant --yes --no-progress --limit-output --fail-on-error-output --version "${env:VAGRANT_VERSION}";
# install .NET 3.5 for MSI build
& "choco.exe" install dotnet3.5 --yes --no-progress --limit-output --fail-on-error-output
if(Test-Path "C:\Windows\Logs\DISM\dism.log") {
Get-Content "C:\Windows\Logs\DISM\dism.log"
}
# Append a ".1" as all ruby packages in chocolatey have this suffix. Not sure why (maybe a package build id)
& "choco.exe" install ruby --yes --no-progress --limit-output --fail-on-error-output --version "${env:RUBY_VERSION}.1";
& "choco.exe" install packer --yes --no-progress --limit-output --fail-on-error-output --version "${env:PACKER_VERSION}";
Expand Down
5 changes: 5 additions & 0 deletions tests/goss-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ command:
exit-status: 0
stdout:
- 2.4.3
dotnet35:
exec: pwsh -command "Test-Path -Path 'HKLM:\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v3.5'"
exit-status: 0
stdout:
- 'True'
file:
C:\Program Files\Chromium\Application\:
contains: []
Expand Down

0 comments on commit b8d7f11

Please sign in to comment.