From c6fdadcb276257a7dd8e0d0eb967dda32fc6c1e9 Mon Sep 17 00:00:00 2001 From: Yellow Shine Date: Tue, 5 Nov 2024 16:06:57 +0800 Subject: [PATCH] enhance: add throttle for cpu-e2e and cpp-unit-test pipeline Signed-off-by: Yellow Shine --- ci/jenkins/PR-for-go-sdk.groovy | 6 ++++++ ci/jenkins/PR.groovy | 6 ++++++ ci/jenkins/UT-CPP.groovy | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/ci/jenkins/PR-for-go-sdk.groovy b/ci/jenkins/PR-for-go-sdk.groovy index 74412efeb168e..704d16056e7f4 100644 --- a/ci/jenkins/PR-for-go-sdk.groovy +++ b/ci/jenkins/PR-for-go-sdk.groovy @@ -12,6 +12,12 @@ pipeline { preserveStashes(buildCount: 5) disableConcurrentBuilds(abortPrevious: true) timeout(time: 6, unit: 'HOURS') + throttleJobProperty( + categories: ['go-sdk'], + throttleEnabled: true, + throttleOption: 'category' + + ) } agent { kubernetes { diff --git a/ci/jenkins/PR.groovy b/ci/jenkins/PR.groovy index 26698ffb78b62..4bf934081b57c 100644 --- a/ci/jenkins/PR.groovy +++ b/ci/jenkins/PR.groovy @@ -11,6 +11,12 @@ pipeline { preserveStashes(buildCount: 5) disableConcurrentBuilds(abortPrevious: true) timeout(time: 6, unit: 'HOURS') + throttleJobProperty( + categories: ['cpu-e2e'], + throttleEnabled: true, + throttleOption: 'category' + + ) } agent { kubernetes { diff --git a/ci/jenkins/UT-CPP.groovy b/ci/jenkins/UT-CPP.groovy index 585f2793290cd..adc2038e8757a 100644 --- a/ci/jenkins/UT-CPP.groovy +++ b/ci/jenkins/UT-CPP.groovy @@ -11,6 +11,12 @@ pipeline { preserveStashes(buildCount: 5) disableConcurrentBuilds(abortPrevious: true) timeout(time: 6, unit: 'HOURS') + throttleJobProperty( + categories: ['cpp-unit-test'], + throttleEnabled: true, + throttleOption: 'category' + + ) } agent { kubernetes {