Skip to content

Commit

Permalink
Publish releases to open-vsx.org
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon committed Aug 11, 2020
1 parent 63f54e0 commit 516ceab
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,19 @@ node('rhel7'){
input message:'Approve deployment?', submitter: 'fbricon'
}

stage "Publish to Marketplace"
stage "Publish to Marketplaces"
unstash 'vsix'
def vsix = findFiles(glob: '**.vsix')
// VS Code Marketplace
withCredentials([[$class: 'StringBinding', credentialsId: 'vscode_java_marketplace', variable: 'TOKEN']]) {
def vsix = findFiles(glob: '**.vsix')
sh 'vsce publish -p ${TOKEN} --packagePath' + " ${vsix[0].path}"
}

// Open-vsx Marketplace
sh "npm install -g ovsx"
withCredentials([[$class: 'StringBinding', credentialsId: 'open-vsx-access-token', variable: 'OVSX_TOKEN']]) {
sh 'ovsx publish -p ${OVSX_TOKEN}' + " ${vsix[0].path}"
}
archive includes:"**.vsix"

stage "Upload to /vscode-xml/stable"
Expand Down

0 comments on commit 516ceab

Please sign in to comment.