jobs:
- github-tox-verify
-####################
-# Anchors & Macros #
-####################
+##############
+# Tox Verify #
+##############
- lf_tox_verify: &lf_tox_verify
name: lf-tox-verify
branch: master
build-timeout: 10
git-url: '$GIT_URL/$GERRIT_PROJECT'
+ stream: master
submodule-recursive: true
tox-dir: ''
tox-envs: ''
- 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}'
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
+ <<: *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:
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}'
# Python projects typically use tox to run testing.
name: '{project-name}-tox-verify-{stream}'
id: github-tox-verify
- <<: *lf-tox-verify
+ <<: *lf_tox_verify
properties:
- github:
- url: '${{GIT_URL}}{github-org}/{project}'
+ url: '{git-url}/{github-org}/{project}'
scm:
- lf-infra-github-scm:
- url: '${{GIT_CLONE_URL}}{github-org}/{project}'
+ url: '{git-clone-url}{github-org}/{project}'
refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
branch: '{branch}'
submodule-recursive: '{submodule-recursive}'