diff options
author | Nathaniel Kierpiec <nkierpiec@chef.io> | 2021-04-16 10:12:55 -0400 |
---|---|---|
committer | Nathaniel Kierpiec <nkierpiec@chef.io> | 2021-04-16 10:12:55 -0400 |
commit | da369219fc23e1a517ec03cca350f34d725bbfa4 (patch) | |
tree | 0ae15eee28f666734e677bb99029ccba405722e4 /omnibus/omnibus-test.sh | |
parent | 8b4492129855834610515a1d039d59a026e1be8b (diff) | |
download | chef-da369219fc23e1a517ec03cca350f34d725bbfa4.tar.gz |
Update tests to handle local omnibus packages from Buildkite artifacts api
Signed-off-by: Nathaniel Kierpiec <nkierpiec@chef.io>
Diffstat (limited to 'omnibus/omnibus-test.sh')
-rw-r--r-- | omnibus/omnibus-test.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/omnibus/omnibus-test.sh b/omnibus/omnibus-test.sh index 2c1313681c..2a32288253 100644 --- a/omnibus/omnibus-test.sh +++ b/omnibus/omnibus-test.sh @@ -4,11 +4,16 @@ set -ueo pipefail channel="${CHANNEL:-unstable}" product="${PRODUCT:-chef}" version="${VERSION:-latest}" +package_file=${PACKAGE_FILE:-""} export INSTALL_DIR="/opt/$product" echo "--- Installing $channel $product $version" -package_file="$("/opt/$TOOLCHAIN/bin/install-omnibus-product" -c "$channel" -P "$product" -v "$version" | tail -1)" +if [[ -z $package_file ]]; then + package_file="$(.omnibus-buildkite-plugin/install-omnibus-product.sh -c "$channel" -P "$product" -v "$version" | tail -1)" +else + .omnibus-buildkite-plugin/install-omnibus-product.sh -f "$package_file" -P "$product" -v "$version" &> /dev/null +fi echo "--- Verifying omnibus package is signed" "/opt/$TOOLCHAIN/bin/check-omnibus-package-signed" "$package_file" |