X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-python-jobs.yaml;h=81f681bcc0b0829023b76720682f96c25812ea75;hb=refs%2Fchanges%2F80%2F8380%2F3;hp=42e0967c7942b7720f2ce0dbfd072bd06cb3a9a8;hpb=bcf758c9be496bcf1fdc934170cc31a914959508;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index 42e0967c..81f681bc 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -17,6 +17,17 @@ jobs: - github-tox-verify +########## +# Macros # +########## + +- builder: + name: lf-infra-tox-install + builders: + - inject: + properties-content: 'PYTHON_VERSION={python-version}' + - shell: !include-raw-escape: ../shell/tox-install.sh + ############## # Tox Verify # ############## @@ -24,22 +35,15 @@ - lf_tox_verify: &lf_tox_verify name: lf-tox-verify - # Required Variables: - # branch: git branch (default: master) - # tox-dir: directory containing the project's tox.ini relative to - # the workspace. Empty works if tox.ini is at project root. - - project-type: freestyle - node: '{build-node}' - concurrent: true - ###################### # Default parameters # ###################### branch: master + build-days-to-keep: 7 build-timeout: 10 git-url: '$GIT_URL/$GERRIT_PROJECT' + python-version: python3 stream: master submodule-recursive: true tox-dir: '' @@ -49,15 +53,20 @@ # Job Configuration # ##################### + project-type: freestyle + node: '{build-node}' + concurrent: true + properties: - lf-infra-properties: - build-days-to-keep: 7 + build-days-to-keep: '{build-days-to-keep}' parameters: - lf-infra-parameters: project: '{project}' branch: '{branch}' stream: '{stream}' + lftools-version: '{lftools-version}' - lf-infra-tox-parameters: tox-dir: '{tox-dir}' tox-envs: '{tox-envs}' @@ -73,9 +82,9 @@ # Without running the install first the run in the publisher will fail # due to missing lftools because it gets installed into a tox venv. - ../shell/lftools-install.sh - - shell: !include-raw-escape: - - ../shell/tox-install.sh - - ../shell/tox-run.sh + - lf-infra-tox-install: + python-version: '{python-version}' + - shell: !include-raw-escape: ../shell/tox-run.sh publishers: - lf-infra-publish @@ -92,7 +101,7 @@ gerrit_verify_triggers: - patchset-created-event: - exclude-drafts: false + exclude-drafts: true exclude-trivial-rebase: false exclude-no-code-change: false - draft-published-event @@ -137,7 +146,7 @@ - lf-infra-github-scm: url: '{git-clone-url}{github-org}/{project}' refspec: '+refs/pull/*:refs/remotes/origin/pr/*' - branch: '{branch}' + branch: '$sha1' submodule-recursive: '{submodule-recursive}' choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}'