3 name: '{project-name}-python-jobs'
5 # This job group contains all the recommended jobs that should be deployed
6 # for any project ci that is using Gerrit.
12 name: '{project-name}-github-python-jobs'
14 # This job group contains all the recommended jobs that should be deployed
15 # for any project ci that is using GitHub.
24 - lf_tox_verify: &lf_tox_verify
27 ######################
28 # Default parameters #
29 ######################
34 git-url: '$GIT_URL/$GERRIT_PROJECT'
36 submodule-recursive: true
44 project-type: freestyle
49 - lf-infra-properties:
50 build-days-to-keep: '{build-days-to-keep}'
53 - lf-infra-parameters:
57 lftools-version: '{lftools-version}'
58 - lf-infra-tox-parameters:
60 tox-envs: '{tox-envs}'
64 build-timeout: '{build-timeout}'
65 jenkins-ssh-credential: '{jenkins-ssh-credential}'
68 - shell: !include-raw-escape:
69 # Workaround issue where the tox run later breaks the lftools virtualenv.
70 # Without running the install first the run in the publisher will fail
71 # due to missing lftools because it gets installed into a tox venv.
72 - ../shell/lftools-install.sh
73 - shell: !include-raw-escape:
74 - ../shell/tox-install.sh
81 # Python projects typically use tox to run testing.
82 name: '{project-name}-tox-verify-{stream}'
86 ######################
87 # Default parameters #
88 ######################
90 gerrit_verify_triggers:
91 - patchset-created-event:
93 exclude-trivial-rebase: false
94 exclude-no-code-change: false
95 - draft-published-event
96 - comment-added-contains-event:
97 comment-contains-value: recheck$
100 # Job Configuration #
101 #####################
104 - lf-infra-gerrit-scm:
105 jenkins-ssh-credential: '{jenkins-ssh-credential}'
107 refspec: '$GERRIT_REFSPEC'
108 branch: '$GERRIT_BRANCH'
109 submodule-recursive: '{submodule-recursive}'
110 choosing-strategy: gerrit
114 server-name: '{gerrit-server-name}'
115 trigger-on: '{obj:gerrit_verify_triggers}'
117 - project-compare-type: ANT
118 project-pattern: '{project}'
120 - branch-compare-type: ANT
121 branch-pattern: '**/{branch}'
124 # Python projects typically use tox to run testing.
125 name: '{project-name}-tox-verify-{stream}'
126 id: github-tox-verify
131 url: '{git-url}/{github-org}/{project}'
134 - lf-infra-github-scm:
135 url: '{git-clone-url}{github-org}/{project}'
136 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
138 submodule-recursive: '{submodule-recursive}'
139 choosing-strategy: default
140 jenkins-ssh-credential: '{jenkins-ssh-credential}'
143 - github-pull-request:
144 trigger-phrase: '^recheck$'
145 only-trigger-phrase: false
146 status-context: 'JJB Verify'
149 auto-close-on-fail: false