Skip to content

Commit 6f78a8e

Browse files
authored
Merge pull request #450 from Dorin-Pleava/MODULES-10038/nightly_download_url_fix
(MODULES-10038) nightly build download location fix
2 parents f6aed68 + 11fd88c commit 6f78a8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks/install_powershell.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ else {
3131
$msi_name = "puppet-agent-${arch}-latest.msi"
3232
}
3333

34+
# Change windows_source only if the collection is a nightly build, and the source was not explicitly specified.
35+
if (($collection -like '*nightly*') -And -Not ($PSBoundParameters.ContainsKey('windows_source'))) {
36+
$windows_source = 'https://nightlies.puppet.com/downloads'
37+
}
38+
3439
$msi_source = "$windows_source/windows/${collection}/${msi_name}"
3540

3641
$date_time_stamp = (Get-Date -format s) -replace ':', '-'

0 commit comments

Comments
 (0)