[cpack/jenkins-main] fixed bug with implicit aws upload profile
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user