X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Flf-ci-jobs.yaml;h=bdebb0f50e6ebbe1145a1df3d87d4114afb5b829;hb=ff69c5d06f4d27f3784bd56c6006e380c95f797f;hp=925ec4ed8cc497f715affec2475c53bd9dbe257a;hpb=a3b2a2ca304c3958f3a4bb214855872d6eae61d4;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 925ec4ed..bdebb0f5 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -113,6 +113,11 @@ stream: master submodule-recursive: true submodule-timeout: 10 + throttle_categories: [] + throttle-enabled: false + throttle-max-per-node: 1 + throttle-max-total: 0 + throttle-option: 'project' gerrit_trigger_file_paths: - compare-type: REG_EXP @@ -140,6 +145,12 @@ - lf-infra-properties: project: '{project}' build-days-to-keep: 7 + - throttle: + categories: '{obj:throttle_categories}' + enabled: '{throttle-enabled}' + max-per-node: '{throttle-max-per-node}' + max-total: '{throttle-max-total}' + option: '{throttle-option}' parameters: - lf-infra-parameters: @@ -473,11 +484,11 @@ scm: - lf-infra-gerrit-scm: git-url: '{git-url}' - refspec: 'refs/heads/{branch}' - branch: '{branch}' + refspec: '$GERRIT_REFSPEC' + branch: '$GERRIT_BRANCH' submodule-recursive: true submodule-timeout: '{submodule-timeout}' - choosing-strategy: default + choosing-strategy: gerrit jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: @@ -708,6 +719,8 @@ # Default parameters # ###################### + jjb-workers: 0 + gerrit_merge_triggers: - change-merged-event - comment-added-contains-event: @@ -720,6 +733,8 @@ builders: - lf-infra-pre-build - lf-infra-jjbini + - inject: + properties-content: JJB_WORKERS={jjb-workers} - shell: !include-raw-escape: - ../shell/jjb-install.sh - ../shell/jjb-merge-job.sh