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']]) {