X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-ci-jobs.yaml;h=bdebb0f50e6ebbe1145a1df3d87d4114afb5b829;hb=refs%2Fchanges%2F63%2F15263%2F4;hp=925ec4ed8cc497f715affec2475c53bd9dbe257a;hpb=2b811ee74f223040ff6071969566de72aed71b2a;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