[cpack/jenkins-main] fixed bug with implicit aws upload profile

This commit is contained in:
scottr
2021-06-20 15:16:18 -07:00
parent 25f99bce79
commit 587aa58b87
@@ -124,9 +124,12 @@ set(_upload_command
--file_regex="${_file_regex}"
--bucket ${_bucket}
--key_prefix ${_prefix}
--profile ${CPACK_AWS_PROFILE}
)
if(CPACK_AWS_PROFILE)
list(APPEND _upload_command --profile ${CPACK_AWS_PROFILE})
endif()
message(STATUS "Uploading artifacts to ${CPACK_UPLOAD_URL}")
execute_process(
COMMAND ${_upload_command}