Unverified Commit f689b293 authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #789 from hypothesis/fix-missing-block-warning

Wrap "stage" contents in a block in Jenkinsfile
parents d0bb1615 8d46c138
......@@ -10,20 +10,22 @@ node {
returnStdout: true
).trim()
stage 'Build'
stage('Build') {
nodeEnv.inside("-e HOME=${workspace}") {
sh "echo Building Hypothesis client \"${pkgVersion}\""
sh 'make clean'
sh 'make'
}
}
stage 'Test'
stage('Test') {
nodeEnv.inside("-e HOME=${workspace}") {
sh 'make test'
}
}
if (isTag()) {
stage 'Publish'
stage('Publish') {
nodeEnv.inside("-e HOME=${workspace}") {
withCredentials([
[$class: 'StringBinding', credentialsId: 'npm-token', variable: 'NPM_TOKEN']]) {
......@@ -42,6 +44,7 @@ node {
sh "docker logs --follow ${c.id}"
}
}
}
}
boolean isTag() {
......
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