From 0bbef5cf97175a5f6ef014e6981ffb60b4d307dc Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Mon, 20 Nov 2023 11:13:41 -0500 Subject: [PATCH] rsync to stagingyum using glob and specifying target version --- theforeman.org/pipelines/lib/packaging.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theforeman.org/pipelines/lib/packaging.groovy b/theforeman.org/pipelines/lib/packaging.groovy index 6836d1a6..b2b3c26f 100644 --- a/theforeman.org/pipelines/lib/packaging.groovy +++ b/theforeman.org/pipelines/lib/packaging.groovy @@ -475,11 +475,11 @@ def rsync_yum(user, ssh_key, collection, target, version) { def hosts = ["web01.osuosl.theforeman.org"] for(host in hosts) { - def target_path = "${user}@${host}:rsync_cache/${target}" + def target_path = "${user}@${host}:rsync_cache/${target}/${version}" sh """ export RSYNC_RSH="ssh -i ${ssh_key}" - /usr/bin/rsync --checksum --perms --recursive --links --verbose --partial --one-file-system --delete-after ${collection}/${version} ${target_path} + /usr/bin/rsync --checksum --perms --recursive --links --verbose --partial --one-file-system --delete-after --mkpath tmp/${collection}/${version}/* ${target_path} """ } }