Skip to content

Commit 1863c17

Browse files
committed
chore(build): upload build artifacts via sftp (was: rsync) (#52)
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent 62493ec commit 1863c17

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
@@ -28,7 +28,7 @@ node('rhel7'){
2828
if(params.UPLOAD_LOCATION) {
2929
stage('Upload') {
3030
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}\"'"
3232
stash name:'zip', includes:filesToPush[0].path
3333
}
3434
}
@@ -50,7 +50,7 @@ node('rhel7'){
5050
if (!isSnapshot) {
5151
stage("Promote the build to stable") {
5252
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}\"'"
5454
currentBuild.keepLog = true
5555
currentBuild.description = "${version}"
5656
}

0 commit comments

Comments
 (0)