This is an automated email from the ASF dual-hosted git repository.

mck pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 33178a6  In jenkins, throttle pipeline jobs (except one primary 
release branch pipeline)
33178a6 is described below

commit 33178a6631f4de5c6c6773dfb9bcd8035d47b014
Author: Mick Semb Wever <[email protected]>
AuthorDate: Sun May 22 14:58:39 2022 +0200

    In jenkins, throttle pipeline jobs (except one primary release branch 
pipeline)
    
     patch by Mick Semb Wever; reviewed by Brandon Williams
---
 jenkins-dsl/cassandra_job_dsl_seed.groovy | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/jenkins-dsl/cassandra_job_dsl_seed.groovy 
b/jenkins-dsl/cassandra_job_dsl_seed.groovy
index 9a83002..eb3a599 100644
--- a/jenkins-dsl/cassandra_job_dsl_seed.groovy
+++ b/jenkins-dsl/cassandra_job_dsl_seed.groovy
@@ -732,6 +732,12 @@ cassandraBranches.each {
             numToKeep(30)
             artifactNumToKeep(10)
         }
+        if (branchName != 'cassandra-4.1') {
+          // allow one pipeline branch to "have focus" and be unthrottled, all 
other branches queue
+          throttleConcurrentBuilds {
+              maxTotal(1)
+          }
+        }
         properties {
             githubProjectUrl(githubRepo)
             priorityJobProperty {
@@ -1288,6 +1294,10 @@ pipelineJob('Cassandra-devbranch') {
         numToKeep(90)
         artifactNumToKeep(10)
     }
+    throttleConcurrentBuilds {
+        maxPerNode(1)
+        maxTotal(2)
+    }
     parameters {
         stringParam('REPO', 'apache', 'The github user/org to clone cassandra 
repo from')
         stringParam('BRANCH', 'trunk', 'The branch of cassandra to checkout')


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to