From 41534543306ccdb2061b877bdc32a265c77199df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Tue, 5 Apr 2022 11:11:54 +0200 Subject: [PATCH] FUSETOOLS2-1587 - fix upload to download.jboss.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rsync is now no more recommended and requires extra parameters. Replacing by sftp which is the recommended way. Following recommended PR on other project https://github.com/redhat-developer/vscode-wizard/pull/103 Signed-off-by: Aurélien Pupier --- JenkinsFile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/JenkinsFile b/JenkinsFile index 44043cff..813e8e09 100644 --- a/JenkinsFile +++ b/JenkinsFile @@ -37,11 +37,11 @@ node('rhel8'){ if(params.UPLOAD_LOCATION) { stage('Snapshot') { def filesToPush = findFiles(glob: '**.vsix') - sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${filesToPush[0].path} ${UPLOAD_LOCATION}/snapshots/vscode-didact/" + sh "sftp -C ${UPLOAD_LOCATION}/snapshots/vscode-didact/ <<< \$'put -p -r ${filesToPush[0].path}'" stash name:'vsix', includes:filesToPush[0].path def tgzFilesToPush = findFiles(glob: '**.tgz') stash name:'tgz', includes:tgzFilesToPush[0].path - sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${tgzFilesToPush[0].path} ${UPLOAD_LOCATION}/snapshots/vscode-didact/" + sh "sftp -C ${UPLOAD_LOCATION}/snapshots/vscode-didact/ <<< \$'put -p -r ${tgzFilesToPush[0].path}'" } } @@ -64,9 +64,9 @@ node('rhel8'){ stage "Promote the build to stable" def vsix = findFiles(glob: '**.vsix') - sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${vsix[0].path} ${UPLOAD_LOCATION}/stable/vscode-didact/" + sh "sftp -C ${UPLOAD_LOCATION}/stable/vscode-didact/ <<< \$'put -p -r ${vsix[0].path}'" def tgz = findFiles(glob: '**.tgz') - sh "rsync -Pzrlt --rsh=ssh --protocol=28 ${tgz[0].path} ${UPLOAD_LOCATION}/stable/vscode-didact/" + sh "sftp -C ${UPLOAD_LOCATION}/stable/vscode-didact/ <<< \$'put -p -r ${tgz[0].path}'" sh "npm install -g ovsx" withCredentials([[$class: 'StringBinding', credentialsId: 'open-vsx-access-token', variable: 'OVSX_TOKEN']]) {