diff options
author | Nathaniel Kierpiec <nkierpiec@chef.io> | 2021-04-16 10:14:54 -0400 |
---|---|---|
committer | Nathaniel Kierpiec <nkierpiec@chef.io> | 2021-04-16 10:14:54 -0400 |
commit | f1db2d2bc6f162c4309a848e0deba1ba20620721 (patch) | |
tree | f2452d5f6b06bbc9610b42c5c43cabc3268dd325 /omnibus/omnibus-test.ps1 | |
parent | da369219fc23e1a517ec03cca350f34d725bbfa4 (diff) | |
download | chef-f1db2d2bc6f162c4309a848e0deba1ba20620721.tar.gz |
Add ps1 editsnkierpiec/update-omnibus-tests
Signed-off-by: Nathaniel Kierpiec <nkierpiec@chef.io>
Diffstat (limited to 'omnibus/omnibus-test.ps1')
-rw-r--r-- | omnibus/omnibus-test.ps1 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1 index 4ab278b2cc..0af1a22af1 100644 --- a/omnibus/omnibus-test.ps1 +++ b/omnibus/omnibus-test.ps1 @@ -20,8 +20,17 @@ If ([string]::IsNullOrEmpty($product)) { $product = "chef" } $version = "$Env:VERSION" If ([string]::IsNullOrEmpty($version)) { $version = "latest" } -Write-Output "--- Installing $channel $product $version" -$package_file = $(C:\opscode\omnibus-toolchain\bin\install-omnibus-product.ps1 -Product "$product" -Channel "$channel" -Version "$version" | Select-Object -Last 1) +$package_file = "$Env:PACKAGE_FILE" +If ([string]::IsNullOrEmpty($package_file)) { $package_file = "" } + +If ($package_file -eq "") { + Write-Output "--- Installing $channel $product $version" + $package_file = $(.omnibus-buildkite-plugin\install-omnibus-product.ps1 -Product "$product" -Channel "$channel" -Version "$version" | Select-Object -Last 1) +} +Else { + Write-Output "--- Installing $product $version" + $package_file = $(.omnibus-buildkite-plugin\install-omnibus-product.ps1 -Package "$package_file" -Product "$product" -Version "$version" | Select-Object -Last 1) +} Write-Output "--- Verifying omnibus package is signed" C:\opscode\omnibus-toolchain\bin\check-omnibus-package-signed.ps1 "$package_file" |