Merge pull request #1103 from travisn/stable-build

Reduce build concurrency for more stable build step
This commit is contained in:
Travis Nielsen
2017-10-18 13:22:12 -07:00
committed by GitHub
Vendored
+6 -5
View File
@@ -25,11 +25,12 @@ pipeline {
if (body.contains("[skip ci]")) {
echo ("'[skip ci]' spotted in PR body text. Aborting.")
env.shouldBuild = "false"
}
if (body.contains("[skip tests]")) {
env.shouldTest = "false"
}
if (body.contains("[smoke only]")) {
env.smokeOnly = "true"
}
}
}
@@ -41,7 +42,7 @@ pipeline {
}
}
steps {
sh 'build/run make -j\$(nproc) build.all'
sh 'build/run make -j4 build.all'
}
}
stage('Unit Tests') {
@@ -58,7 +59,7 @@ pipeline {
stage('Integration Tests') {
when {
expression {
return env.shouldBuild != "false"
return env.shouldBuild != "false" && env.shouldTest != "false"
}
}
steps{
@@ -91,7 +92,7 @@ pipeline {
stage('Publish') {
when {
expression {
return env.shouldBuild != "false"
return env.shouldBuild != "false" && env.shouldTest != "false"
}
}
environment {