Skip to content

Commit 661345e

Browse files
committed
Eliminate need for downloading just-released binary checksums.
- When the build process finishes building binaries, and generating the checksums, we should stash these to avoid having to download once deployed - Also use ovsx<0.3.0 to ensure we build with Node v12 Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
1 parent 53be11d commit 661345e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Jenkinsfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ node('rhel8'){
5959

6060
stage 'package binary hashes'
6161
sh "mkdir ./server"
62-
sh "curl ${downloadLocation}/vscode/${binaryUploadFolder}/lemminx-binary/${packageJson.version}-${env.BUILD_NUMBER}/lemminx-linux.sha256 -o ./server/lemminx-linux.sha256"
63-
sh "curl ${downloadLocation}/vscode/${binaryUploadFolder}/lemminx-binary/${packageJson.version}-${env.BUILD_NUMBER}/lemminx-win32.sha256 -o ./server/lemminx-win32.sha256"
64-
sh "curl ${downloadLocation}/vscode/${binaryUploadFolder}/lemminx-binary/${packageJson.version}-${env.BUILD_NUMBER}/lemminx-osx-x86_64.sha256 -o ./server/lemminx-osx-x86_64.sha256"
62+
unstash name: 'checksums'
63+
sh "mv lemminx-*.sha256 ./server"
6564

6665
stage 'install vscode-xml build requirements'
6766
installBuildRequirements()
@@ -101,7 +100,7 @@ node('rhel8'){
101100
}
102101

103102
// Open-vsx Marketplace
104-
sh "npm install -g ovsx"
103+
sh 'npm install -g "ovsx<0.3.0"'
105104
withCredentials([[$class: 'StringBinding', credentialsId: 'open-vsx-access-token', variable: 'OVSX_TOKEN']]) {
106105
sh 'ovsx publish -p ${OVSX_TOKEN}' + " ${vsix[0].path}"
107106
}

NativeImage.jenkins

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ pipeline {
130130
sh "sha256sum lemminx-linux > lemminx-linux.sha256"
131131
sh "sha256sum lemminx-win32.exe > lemminx-win32.sha256"
132132
sh "sha256sum lemminx-osx-x86_64 > lemminx-osx-x86_64.sha256"
133+
stash name: 'checksums', includes: 'lemminx-*.sha256'
133134

134135
// Move artifacts into a folder name unique to this build
135136
sh "curl -Lo package.json https://raw.githubusercontent.com/${params.FORK}/vscode-xml/${params.BRANCH}/package.json"

0 commit comments

Comments
 (0)