X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-ci-jobs.yaml;h=73ab2b0c4995b6af502e3119522627a929258b3e;hb=refs%2Fchanges%2F47%2F15347%2F1;hp=bdcd65efecc13404e39faaab414524084fc31b65;hpb=28ea3ab0bd1aca3d00cf5428bd805481e137f0c8;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index bdcd65ef..73ab2b0c 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -38,7 +38,7 @@ submodule-recursive: true submodule-timeout: 10 packer-cloud-settings: packer-cloud-env - packer-version: 1.2.5 + packer-version: 1.4.0 ##################### # Job Configuration # @@ -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: @@ -598,7 +609,7 @@ submodule-timeout: 10 gerrit_jjb_deploy_job_triggers: - comment-added-contains-event: - comment-contains-value: 'jjb-deploy[:]* (?!\*+$).+$' + comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(jjb-deploy[:]* (?!\*+$).+$)' ##################### # Job Configuration # @@ -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