File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ node('rhel7'){
28
28
if (params. UPLOAD_LOCATION ) {
29
29
stage(' Upload' ) {
30
30
def filesToPush = findFiles(glob : ' **/*.zip' )
31
- sh " rsync -Pzrlt --rsh=ssh --protocol=28 \" ${ filesToPush[0].path} \" ${ UPLOAD_LOCATION } /snapshots/intellij-redhat-telemetry/ "
31
+ sh " sftp -C ${ UPLOAD_LOCATION } /snapshots/intellij-redhat-telemetry/ <<< \$ 'put -p \" ${ filesToPush[0].path} \" ' "
32
32
stash name :' zip' , includes :filesToPush[0 ]. path
33
33
}
34
34
}
@@ -50,7 +50,7 @@ node('rhel7'){
50
50
if (! isSnapshot) {
51
51
stage(" Promote the build to stable" ) {
52
52
def zip = findFiles(glob : ' **/*.zip' )
53
- sh " rsync -Pzrlt --rsh=ssh --protocol=28 \" ${ zip[0].path} \" ${ UPLOAD_LOCATION } /stable/intellij-redhat-telemetry/ "
53
+ sh " sftp -C ${ UPLOAD_LOCATION } /stable/intellij-redhat-telemetry/ <<< \$ 'put -p \" ${ zip[0].path} \" ' "
54
54
currentBuild. keepLog = true
55
55
currentBuild. description = " ${ version} "
56
56
}
You can’t perform that action at this time.
0 commit comments