Skip to content

Commit 2b7d991

Browse files
committed
Replace rsync calls with sftp in Jenkinsfile deployment
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
1 parent f0f873f commit 2b7d991

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ node('rhel8'){
6565
if(params.UPLOAD_LOCATION) {
6666
stage('Snapshot') {
6767
def filesToPush = findFiles(glob: '**.vsix')
68-
sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${filesToPush[0].path} ${UPLOAD_LOCATION}/snapshots/vscode-quarkus/"
68+
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/vscode-quarkus/ <<< \$'put -p ${filesToPush[0].path}'"
6969
stash name:'vsix', includes:filesToPush[0].path
7070
def tgzFilesToPush = findFiles(glob: '**.tgz')
7171
stash name:'tgz', includes:tgzFilesToPush[0].path
72-
sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${tgzFilesToPush[0].path} ${UPLOAD_LOCATION}/snapshots/vscode-quarkus/"
72+
sh "sftp -C ${UPLOAD_LOCATION}/snapshots/vscode-quarkus/ <<< \$'put -p ${tgzFilesToPush[0].path}'"
7373
}
7474
}
7575

@@ -96,9 +96,9 @@ node('rhel8'){
9696
archiveArtifacts artifacts:"**.vsix,**.tgz"
9797

9898
stage "Promote the build to stable"
99-
sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${vsix[0].path} ${UPLOAD_LOCATION}/stable/vscode-quarkus/"
99+
sh "sftp -C ${UPLOAD_LOCATION}/stable/vscode-quarkus/ <<< \$'put -p ${vsix[0].path}'"
100100
def tgz = findFiles(glob: '**.tgz')
101-
sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${tgz[0].path} ${UPLOAD_LOCATION}/stable/vscode-quarkus/"
101+
sh "sftp -C ${UPLOAD_LOCATION}/stable/vscode-quarkus/ <<< \$'put -p ${tgz[0].path}'"
102102
}
103103
}
104104
}

0 commit comments

Comments
 (0)