Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions JenkinsFile
Original file line number Diff line number Diff line change
Expand Up @@ -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}'"

}
}
Expand All @@ -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']]) {
Expand Down