forked from rook/rook
Merge pull request #1103 from travisn/stable-build
Reduce build concurrency for more stable build step
This commit is contained in:
Vendored
+6
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user