Skip to content

Commit

Permalink
Fix Jenkinsfile to publish the correct generic version (#2252)
Browse files Browse the repository at this point in the history
Signed-off-by: Jinbo Wang <[email protected]>
  • Loading branch information
testforstephen authored Jan 10, 2022
1 parent 0208943 commit f68ba7e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ node('rhel8'){
for(artifact in artifacts){
sh "rsync -Pzrlt --rsh=ssh --protocol=28 --relative ${artifactDir}/${artifact.path} ${UPLOAD_LOCATION}/jdt.ls/staging"
}
// Clean up build vsix
sh "rm -rf ${artifactDir}"
}

node('rhel8'){
Expand All @@ -98,6 +100,8 @@ node('rhel8'){
stage "Publish to VS Code Marketplace"
// VS Code Marketplace
withCredentials([[$class: 'StringBinding', credentialsId: 'vscode_java_marketplace', variable: 'TOKEN']]) {
// Clean up embedded jre folder from previous build
sh 'npx gulp clean_jre'
// Publish a generic version
sh 'vsce publish -p ${TOKEN} --target win32-ia32 win32-arm64 linux-armhf alpine-x64 alpine-arm64'

Expand All @@ -111,9 +115,9 @@ node('rhel8'){

stage "Publish to http://download.jboss.org/jbosstools/static/jdt.ls/stable/"
def artifacts = findFiles(glob: '**.vsix')
def artifactDir = "java-${env.EXTENSION_VERSION}"
sh "mkdir ${artifactDir}"
sh "mv *.vsix ${artifactDir}"
def artifactDir = "java-${env.EXTENSION_VERSION}"
sh "mkdir ${artifactDir}"
sh "mv *.vsix ${artifactDir}"

archive includes:"${artifactDir}/**/*.*"

Expand Down

0 comments on commit f68ba7e

Please sign in to comment.