File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
8385node(' 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
You can’t perform that action at this time.
0 commit comments