Skip to content

Commit 9ee0532

Browse files
authored
Merge pull request #329 from fbricon/ovsx
Deploy to open-vsx.org during releases
2 parents 591773d + 429294c commit 9ee0532

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Jenkinsfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,18 @@ node('rhel8'){
4545
input message:'Approve deployment?', submitter: 'jpinkney'
4646
}
4747

48-
stage "Publish to Marketplace"
48+
stage "Publish to Marketplaces"
4949
unstash 'vsix';
50+
def vsix = findFiles(glob: '**.vsix')
51+
// VS Code Marketplace
5052
withCredentials([[$class: 'StringBinding', credentialsId: 'vscode_java_marketplace', variable: 'TOKEN']]) {
51-
def vsix = findFiles(glob: '**.vsix')
5253
sh 'vsce publish -p ${TOKEN} --packagePath' + " ${vsix[0].path}"
5354
}
55+
56+
// Open-vsx Marketplace
57+
sh "npm install -g ovsx"
58+
withCredentials([[$class: 'StringBinding', credentialsId: 'open-vsx-access-token', variable: 'OVSX_TOKEN']]) {
59+
sh 'ovsx publish -p ${OVSX_TOKEN}' + " ${vsix[0].path}"
60+
}
5461
archive includes:"**.vsix"
5562
}

0 commit comments

Comments
 (0)