X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-python-jobs.yaml;h=005f99f76ac03206d55e7f63594fb17a0bc9863e;hb=859c2a8b7df2cb690995a28b696ae6665f0b5252;hp=e66f522cc899ca116b17515e2c99a7abe3f6cd0d;hpb=0a7789167effec0b07cc32794d44ff3222e90a1a;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index e66f522c..005f99f7 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -17,9 +17,9 @@ jobs: - github-tox-verify -#################### -# Anchors & Macros # -#################### +############## +# Tox Verify # +############## - lf_tox_verify: &lf_tox_verify name: lf-tox-verify @@ -40,7 +40,7 @@ branch: master build-timeout: 10 git-url: '$GIT_URL/$GERRIT_PROJECT' - stream: '{stream}' + stream: master submodule-recursive: true tox-dir: '' tox-envs: '' @@ -58,6 +58,7 @@ project: '{project}' branch: '{branch}' stream: '{stream}' + lftools-version: '{lftools-version}' - lf-infra-tox-parameters: tox-dir: '{tox-dir}' tox-envs: '{tox-envs}' @@ -80,16 +81,29 @@ publishers: - lf-infra-publish -################# -# Job Templates # -################# - - job-template: # Python projects typically use tox to run testing. name: '{project-name}-tox-verify-{stream}' id: gerrit-tox-verify <<: *lf_tox_verify + ###################### + # Default parameters # + ###################### + + gerrit_verify_triggers: + - patchset-created-event: + exclude-drafts: false + exclude-trivial-rebase: false + exclude-no-code-change: false + - draft-published-event + - comment-added-contains-event: + comment-contains-value: recheck$ + + ##################### + # Job Configuration # + ##################### + scm: - lf-infra-gerrit-scm: jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -102,14 +116,7 @@ triggers: - gerrit: server-name: '{gerrit-server-name}' - trigger-on: - - patchset-created-event: - exclude-drafts: false - exclude-trivial-rebase: false - exclude-no-code-change: false - - draft-published-event - - comment-added-contains-event: - comment-contains-value: recheck$ + trigger-on: '{obj:gerrit_verify_triggers}' projects: - project-compare-type: ANT project-pattern: '{project}'