3 # Job template for python verify jobs
5 # The purpose of this job template is to run:
8 # This job supports subprojects.
11 # branch: git branch (eg. stable/lithium or master)
13 # path: directory containing the project's tox.ini relative to
14 # the workspace. The default is the project root.
15 # pattern: ant file-path pattern relative to the workspace used to
18 name: '{project-name}-{stream}-{subproject}-verify-python'
21 project-type: freestyle
27 build-days-to-keep: '{build-days-to-keep}'
33 refspec: 'refs/heads/{branch}'
34 artifacts: '{archive-artifacts}'
36 maven-version: '{maven-version}'
40 refspec: '$GERRIT_REFSPEC'
41 choosing-strategy: 'gerrit'
42 submodule-recursive: '{submodule-recursive}'
46 build-timeout: '{build-timeout}'
49 - gerrit-trigger-patch-submitted:
50 server: '{server-name}'
57 - provide-maven-settings:
58 global-settings-file: 'global-settings'
59 settings-file: '{mvn-settings}'
62 # shellcheck disable=SC1090
65 lf-activate-venv --python python3.8 --venv-file /tmp/.toxenv \
66 tox==3.27.1 tox-pyenv virtualenv argparse webtest
68 if [[ -d /opt/pyenv ]]; then
69 echo "---> Setting up pyenv"
70 export PYENV_ROOT="/opt/pyenv"
71 export PATH="$PYENV_ROOT/bin:$PATH"
74 export TOX_TESTENV_PASSENV=PYTHONPATH
77 python -m pip install --upgrade pip
91 # Job template for docker daily jobs for 3 SCMs
93 # The purpose of this job template is to run:
94 # 1. inject a version properties file
95 # 2. login into the docker registry
96 # 4. run a specified shell script
99 # branch: git branch (eg. stable/lithium or master)
101 name: '{project-name}-{stream}-3scm-docker-shell-daily'
102 project-type: freestyle
103 node: 'queue-docker-4c-4g'
107 build-days-to-keep: '{build-days-to-keep}'
113 refspec: 'refs/heads/{branch}'
114 artifacts: '{archive-artifacts}'
116 maven-version: '{maven-version}'
118 - gerrit-trigger-scm:
120 choosing-strategy: 'default'
121 submodule-recursive: '{submodule-recursive}'
124 - infra-wrappers-docker-build:
125 build-timeout: '{build-timeout}'
128 - timed: 'H */4 * * *'
129 - gerrit-trigger-release-manually:
130 server: '{server-name}'
133 - gerrit-trigger-patch-merged:
134 server: '{server-name}'
141 - provide-maven-settings:
142 global-settings-file: 'global-settings'
143 settings-file: '{mvn-settings}'
145 properties-file: version.properties