From 516ceab7ac4f01c86da04223e02572aafd461046 Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Tue, 7 Jul 2020 18:10:23 +0200 Subject: [PATCH] Publish releases to open-vsx.org Signed-off-by: Fred Bricon --- Jenkinsfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f2abd12..19982dbd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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"