diff --git a/eng/pipelines/templates/jobs/vmr-build.yml b/eng/pipelines/templates/jobs/vmr-build.yml index 7affd71f59d6..4490d6ba8c95 100644 --- a/eng/pipelines/templates/jobs/vmr-build.yml +++ b/eng/pipelines/templates/jobs/vmr-build.yml @@ -479,6 +479,12 @@ jobs: targetFolder=$(Build.StagingDirectory)/BuildLogs/ mkdir -p ${targetFolder} + # Download rsync if using mariner + if grep -qE "CBL-Mariner|Azure Linux" /etc/os-release; then + sudo tdnf install -y rsync + sudo tdnf clean all + fi + cd "$(sourcesPath)" find artifacts/log/ -exec rsync -R {} -t ${targetFolder} \; if [ -d "artifacts/scenario-tests/" ]; then