From 587aa58b8793922e0ed3c603de4d06bc4d3b575e Mon Sep 17 00:00:00 2001 From: scottr Date: Sun, 20 Jun 2021 15:16:18 -0700 Subject: [PATCH] [cpack/jenkins-main] fixed bug with implicit aws upload profile --- cmake/Platform/Windows/PackagingPostBuild.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/Platform/Windows/PackagingPostBuild.cmake b/cmake/Platform/Windows/PackagingPostBuild.cmake index fae9e00e84..89c9837cf5 100644 --- a/cmake/Platform/Windows/PackagingPostBuild.cmake +++ b/cmake/Platform/Windows/PackagingPostBuild.cmake @@ -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}