Unverified Commit 9bd562d9 authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #677 from hypothesis/s3-npm-publish-fix

Specify npm package version to publish to S3
parents c3cd1bd5 381af3ac
......@@ -5,9 +5,14 @@ node {
nodeEnv = docker.image("kkarczmarczyk/node-yarn:7.5")
workspace = pwd()
pkgVersion = sh (
script: 'cat package.json | jq -r .version',
returnStdout: true
).trim()
stage 'Build'
nodeEnv.inside("-e HOME=${workspace}") {
sh "echo Building Hypothesis client \"${pkgVersion}\""
sh 'make clean'
sh 'make'
}
......@@ -33,7 +38,7 @@ node {
// Upload the contents of the package to an S3 bucket, which it
// will then be served from.
docker.image('nickstenning/s3-npm-publish')
.withRun('', 'hypothesis s3://cdn.hypothes.is') { c ->
.withRun('', "hypothesis@${pkgVersion} s3://cdn.hypothes.is") { c ->
sh "docker logs --follow ${c.id}"
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment