mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 11:48:33 +08:00
enable parallel job execution
With the use of C3IaaS, resource contention in the main OpenShift project will be dramatically reduced. This allows jobs to run in paralle, increasing throughput and reducing lag time for feedback on changes.
This commit is contained in:
@@ -221,7 +221,7 @@ objects:
|
||||
labels:
|
||||
app: "${NAME}"
|
||||
spec:
|
||||
runPolicy: "Serial"
|
||||
runPolicy: "Parallel"
|
||||
completionDeadlineSeconds: 1800
|
||||
source:
|
||||
git:
|
||||
|
||||
@@ -42,7 +42,6 @@ pipeline {
|
||||
timestamps()
|
||||
timeout(time: 120, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||
disableConcurrentBuilds()
|
||||
skipDefaultCheckout()
|
||||
}
|
||||
environment {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Use scripted syntax because CIBuildTrigger currently doesn't support the declarative syntax
|
||||
properties([
|
||||
buildDiscarder(logRotator(numToKeepStr: '10')),
|
||||
disableConcurrentBuilds(),
|
||||
pipelineTriggers([
|
||||
// example: https://github.com/jenkinsci/jms-messaging-plugin/blob/9b9387c3a52f037ba0d019c2ebcf2a2796fc6397/src/test/java/com/redhat/jenkins/plugins/ci/integration/AmqMessagingPluginIntegrationTest.java
|
||||
[$class: 'CIBuildTrigger',
|
||||
|
||||
@@ -72,7 +72,7 @@ objects:
|
||||
labels:
|
||||
app: "${NAME}"
|
||||
spec:
|
||||
runPolicy: "Serial"
|
||||
runPolicy: "Parallel"
|
||||
completionDeadlineSeconds: 1800
|
||||
source:
|
||||
git:
|
||||
|
||||
@@ -85,7 +85,7 @@ objects:
|
||||
labels:
|
||||
app: "${NAME}"
|
||||
spec:
|
||||
runPolicy: "Serial" # FIXME: Parallel is supported, but we have limited quota in UpShift.
|
||||
runPolicy: "Parallel"
|
||||
completionDeadlineSeconds: 1800
|
||||
source:
|
||||
git:
|
||||
|
||||
@@ -39,7 +39,6 @@ pipeline {
|
||||
timestamps()
|
||||
timeout(time: 30, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||
disableConcurrentBuilds()
|
||||
skipDefaultCheckout()
|
||||
}
|
||||
environment {
|
||||
|
||||
@@ -99,7 +99,7 @@ objects:
|
||||
labels:
|
||||
app: "${NAME}"
|
||||
spec:
|
||||
runPolicy: "Serial" # FIXME: Parallel is supported, but we have limited quota in UpShift.
|
||||
runPolicy: "Parallel"
|
||||
completionDeadlineSeconds: 1800
|
||||
source:
|
||||
git:
|
||||
|
||||
@@ -36,7 +36,6 @@ pipeline {
|
||||
timestamps()
|
||||
timeout(time: 60, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||
disableConcurrentBuilds()
|
||||
skipDefaultCheckout()
|
||||
}
|
||||
environment {
|
||||
|
||||
@@ -83,7 +83,7 @@ objects:
|
||||
labels:
|
||||
app: "${NAME}"
|
||||
spec:
|
||||
runPolicy: "Serial"
|
||||
runPolicy: "Parallel"
|
||||
completionDeadlineSeconds: 1800
|
||||
strategy:
|
||||
type: JenkinsPipeline
|
||||
@@ -127,7 +127,6 @@ objects:
|
||||
timestamps()
|
||||
timeout(time: 60, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||
disableConcurrentBuilds()
|
||||
skipDefaultCheckout()
|
||||
}
|
||||
environment {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Use scripted syntax because CIBuildTrigger currently doesn't support the declarative syntax
|
||||
properties([
|
||||
buildDiscarder(logRotator(numToKeepStr: '10')),
|
||||
disableConcurrentBuilds(),
|
||||
pipelineTriggers([
|
||||
// example: https://github.com/jenkinsci/jms-messaging-plugin/blob/9b9387c3a52f037ba0d019c2ebcf2a2796fc6397/src/test/java/com/redhat/jenkins/plugins/ci/integration/AmqMessagingPluginIntegrationTest.java
|
||||
[$class: 'CIBuildTrigger',
|
||||
|
||||
@@ -94,7 +94,7 @@ objects:
|
||||
labels:
|
||||
app: "${NAME}"
|
||||
spec:
|
||||
runPolicy: "Serial"
|
||||
runPolicy: "Parallel"
|
||||
completionDeadlineSeconds: 1800
|
||||
source:
|
||||
git:
|
||||
|
||||
Reference in New Issue
Block a user