Skip to content

Commit f68ba7e

Browse files
Fix Jenkinsfile to publish the correct generic version (#2252)
Signed-off-by: Jinbo Wang <[email protected]>
1 parent 0208943 commit f68ba7e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Jenkinsfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ node('rhel8'){
7878
for(artifact in artifacts){
7979
sh "rsync -Pzrlt --rsh=ssh --protocol=28 --relative ${artifactDir}/${artifact.path} ${UPLOAD_LOCATION}/jdt.ls/staging"
8080
}
81+
// Clean up build vsix
82+
sh "rm -rf ${artifactDir}"
8183
}
8284

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

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

112116
stage "Publish to http://download.jboss.org/jbosstools/static/jdt.ls/stable/"
113117
def artifacts = findFiles(glob: '**.vsix')
114-
def artifactDir = "java-${env.EXTENSION_VERSION}"
115-
sh "mkdir ${artifactDir}"
116-
sh "mv *.vsix ${artifactDir}"
118+
def artifactDir = "java-${env.EXTENSION_VERSION}"
119+
sh "mkdir ${artifactDir}"
120+
sh "mv *.vsix ${artifactDir}"
117121

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

0 commit comments

Comments
 (0)