Skip to content

Commit

Permalink
Use upload_stage_rpms to rsync to stagingyum
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Nov 1, 2023
1 parent 6565a8d commit de16585
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 3 additions & 1 deletion theforeman.org/pipelines/lib/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ def rsync_yum(user, ssh_key, collection, target, version) {

sh """
export RSYNC_RSH="ssh -i ${ssh_key}"
/usr/bin/rsync --archive --verbose --partial --one-file-system --delete-after ${collection}/${version} ${target_path}
export VERSION=${version}
export PROJECT=${collection}
./upload_stage_rpms
"""
}
}
4 changes: 1 addition & 3 deletions theforeman.org/pipelines/release/pipelines/client.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ pipeline {
stage('staging-copy-repository') {
steps {
script {
dir('tmp') {
rsync_to_yum_stage('client', 'client', foreman_version)
}
rsync_to_yum_stage('client', 'client', foreman_version)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ pipeline {
stage('staging-copy-repository') {
steps {
script {
dir('tmp') {
rsync_to_yum_stage('foreman', 'foreman', foreman_version)
}
rsync_to_yum_stage('foreman', 'foreman', foreman_version)
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions theforeman.org/pipelines/release/pipelines/katello.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ pipeline {
stage('staging-copy-repository') {
steps {
script {
dir('tmp') {
rsync_to_yum_stage('katello', 'katello', katello_version)
}
rsync_to_yum_stage('katello', 'katello', katello_version)
}
}
}
Expand Down

0 comments on commit de16585

Please sign in to comment.