Skip to content

Commit

Permalink
Fix missing bbl folder
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJCross committed Oct 18, 2022
1 parent d2dd5a3 commit 2a22cf6
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions ci/autoscaler/scripts/vars.source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,8 @@ function step(){
script_dir="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
root_dir=$(realpath -e "${script_dir}/../../..")

export PR_NUMBER=${PR_NUMBER:-UNDEFINED}
if [[ ${PR_NUMBER} == "UNDEFINED" ]]; then
if ! PR_NUMBER=$(gh pr view --json number --jq '.number'); then
warn "no PR_NUMBER is set, will use the default (44)";
PR_NUMBER=44
fi
fi
export PR_NUMBER=${PR_NUMBER:-$(gh pr view --json number --jq '.number' || echo 44)}
[ "${PR_NUMBER}" == "44" ] && warn "no PR_NUMBER is set, will use the default (44)";
debug "PR_NUMBER: ${PR_NUMBER}"

export DEPLOYMENT_NAME="${DEPLOYMENT_NAME:-"autoscaler-${PR_NUMBER}"}"
Expand All @@ -48,20 +43,18 @@ log "set up vars: DEPLOYMENT_NAME=${DEPLOYMENT_NAME}"
# shellcheck disable=SC2034
deployment_name="${DEPLOYMENT_NAME}"


export SYSTEM_DOMAIN="${SYSTEM_DOMAIN:-"autoscaler.app-runtime-interfaces.ci.cloudfoundry.org"}"
debug "SYSTEM_DOMAIN: ${SYSTEM_DOMAIN}"
# shellcheck disable=SC2034
system_domain="${SYSTEM_DOMAIN}"


BBL_STATE_PATH="${BBL_STATE_PATH:-$( realpath -e "${root_dir}/../app-autoscaler-env-bbl-state/bbl-state" 2> /dev/null || realpath -e "${root_dir}/../bbl-state/bbl-state" 2> /dev/null )}"
export BBL_STATE_PATH="$(realpath -e "${BBL_STATE_PATH}" )"
BBL_STATE_PATH="${BBL_STATE_PATH:-$( realpath -e "${root_dir}/../app-autoscaler-env-bbl-state/bbl-state" 2> /dev/null || echo "${root_dir}/../bbl-state/bbl-state" )}"
BBL_STATE_PATH="$(realpath -e "${BBL_STATE_PATH}" || echo "ERR_invalid_state_path" )"
export BBL_STATE_PATH
debug "BBL_STATE_PATH: ${BBL_STATE_PATH}"
# shellcheck disable=SC2034
bbl_state_path="${BBL_STATE_PATH}"


AUTOSCALER_DIR="${AUTOSCALER_DIR:-${root_dir}}"
export AUTOSCALER_DIR="$(realpath -e "${AUTOSCALER_DIR}" )"
debug "AUTOSCALER_DIR: ${AUTOSCALER_DIR}"
Expand Down

0 comments on commit 2a22cf6

Please sign in to comment.