Skip to content

Commit 782c466

Browse files
authored
chore(build): fix rsync issues (#72)
Fixes #71 Signed-off-by: Jeff MAURY <[email protected]>
1 parent ab60bd0 commit 782c466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ node('rhel7'){
2727
if(params.UPLOAD_LOCATION) {
2828
stage('Upload') {
2929
def filesToPush = findFiles(glob: '**/*.zip')
30-
sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${filesToPush[0].path} ${UPLOAD_LOCATION}/snapshots/intellij-dependency-analytics/"
30+
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/intellij-dependency-analytics/ <<< \$'put -p \"${filesToPush[0].path}\"'"
3131
stash name:'zip', includes:filesToPush[0].path
3232
}
3333
}
@@ -49,7 +49,7 @@ node('rhel7'){
4949
if (!isSnapshot) {
5050
stage("Promote the build to stable") {
5151
def zip = findFiles(glob: '**/*.zip')
52-
sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${zip[0].path} ${UPLOAD_LOCATION}/stable/intellij-dependency-analytics/"
52+
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/intellij-dependency-analytics/ <<< \$'put -p \"${zip[0].path}\"'"
5353
currentBuild.keepLog = true
5454
currentBuild.description = "${version}"
5555
}

0 commit comments

Comments
 (0)