Skip to content

Commit

Permalink
Merge pull request #20 from microsoft/add-auto-download-buildartifact…
Browse files Browse the repository at this point in the history
…s-for-sdkservice

adding auto_add_downloads for sdk-service
  • Loading branch information
bigtallcampbell authored Jun 17, 2024
2 parents d70f12d + b37f854 commit 46ba9cc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/load_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ if [[ "${SPACESDK_CONTAINER}" == "true" ]]; then
_collect_container_info
# _update_bashrc
_convert_options_to_arrays
_auto_add_downloads
fi
25 changes: 25 additions & 0 deletions modules/m_110_debugshim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,30 @@ function wait_for_deployment_deletion_by_app_id() {

info_log "Pods and volumes successfully terminated for '${appId}'."

info_log "END: ${FUNCNAME[0]}"
}



############################################################
# Automatically add options to download for debug shims
############################################################
function _auto_add_downloads() {
info_log "START: ${FUNCNAME[0]}"

case "${APP_TYPE}" in
"sdk-service")
ARTIFACTS+=("Microsoft.Azure.SpaceFx.Core.${SPACEFX_VERSION}.nupkg")
ARTIFACTS+=("Common.proto")
;;
esac


# TODO: update to scan for dotnet solutions (*.sln) and python files (*.py) to calculate which dev_language we're using
# if [[ "${DEV_LANGUAGE}" == "python" ]]; then
# PACKAGES+=("socat")
# PACKAGES+=("nuget")
# fi

info_log "END: ${FUNCNAME[0]}"
}

0 comments on commit 46ba9cc

Please sign in to comment.