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

apupier pushed a commit to branch camel-4.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.14.x by this push:
     new fc6c3f1e5ee0 INFRA-27835 - Avoid concurrent builds of Camel on same 
nodes
fc6c3f1e5ee0 is described below

commit fc6c3f1e5ee08e450155b034368c87b520a831d9
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Mon Dec 8 17:03:44 2025 +0100

    INFRA-27835 - Avoid concurrent builds of Camel on same nodes
    
    Before this commit, we ensured a single build at a time for the exact
    same job but we do not between main branch and maintenance branch.
    
    The configuration must be provided also on the stage part
    
https://plugins.jenkins.io/throttle-concurrents/#plugin-content-example-4-throttling-of-declarative-stages
    
    So using a Throttle category configured to allow concurrent build on
    different node but not on same node
    Note that this configuration must be provided to maintenance branch to
    to have effect
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 Jenkinsfile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 23529cef79fe..6bcee6a7677a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -58,6 +58,9 @@ pipeline {
                 agent {
                     label "${PLATFORM}"
                 }
+                options {
+                    throttle(['camel'])
+                }
                 when { anyOf {
                     expression { params.PLATFORM_FILTER == 'all' }
                     expression { params.PLATFORM_FILTER == env.PLATFORM }

Reply via email to