Skip to content

Commit

Permalink
chore(build): fix rsync issues (#554)
Browse files Browse the repository at this point in the history
Fixes #553

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
  • Loading branch information
jeffmaury authored Apr 12, 2022
1 parent 4378f39 commit 0a6f404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ node('rhel7'){
if(params.UPLOAD_LOCATION) {
stage('Upload') {
def filesToPush = findFiles(glob: '**/*.zip')
sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${filesToPush[0].path} ${UPLOAD_LOCATION}/snapshots/intellij-tekton/"
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/intellij-tekton/ <<< \$`put -p ${filesToPush[0].path}`"
stash name:'zip', includes:filesToPush[0].path
}
}
Expand All @@ -49,7 +49,7 @@ node('rhel7'){
if (!isSnapshot) {
stage("Promote the build to stable") {
def zip = findFiles(glob: '**/*.zip')
sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${zip[0].path} ${UPLOAD_LOCATION}/stable/intellij-tekton/"
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/intellij-tekton/ <<< \$`put -p ${zip[0].path}`"
currentBuild.keepLog = true
currentBuild.description = "${version}"
}
Expand Down

0 comments on commit 0a6f404

Please sign in to comment.