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