Skip to content

Commit

Permalink
rsync to stagingyum using glob and specifying target version
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Nov 21, 2023
1 parent d78f0f3 commit 0bbef5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theforeman.org/pipelines/lib/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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}
"""
}
}

0 comments on commit 0bbef5c

Please sign in to comment.