From 20cb27a52e9af83a6409f1720ce283c95eb30070 Mon Sep 17 00:00:00 2001 From: Alan Moran Date: Fri, 7 Jun 2024 12:50:55 +0200 Subject: [PATCH] Adds missing function --- ci/infrastructure/scripts/utils.source.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ci/infrastructure/scripts/utils.source.sh b/ci/infrastructure/scripts/utils.source.sh index f46de51807..1cf3cc268f 100644 --- a/ci/infrastructure/scripts/utils.source.sh +++ b/ci/infrastructure/scripts/utils.source.sh @@ -1,5 +1,6 @@ bosh_upload_stemcell_opts="${BOSH_UPLOAD_STEMCELL_OPTS:-""}" + function find_or_upload_stemcell_from(){ deployment_manifest=$1 # Determine if we need to upload a stemcell at this point. @@ -18,6 +19,18 @@ function find_or_upload_stemcell_from(){ fi } +# upload release from a bosh.io resource +function upload_release(){ + release_dir=$1 + + pushd "${release_dir}" > /dev/null || exit + echo "Uploading release from ${release_dir}" + echo "Listing files in ${release_dir}:" + log $(ls -1 *.tgz) + bosh -n upload-release release.tgz + popd > /dev/null || exit +} + function load_bbl_vars() { if [ -z "${bbl_state_path}" ]; then echo "ERROR: bbl_state_path is not set"