blob: f0663bc1f0fb43f52fee0f0c7f71928a7c70738b [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
3 # Job template for python verify jobs
4 #
5 # The purpose of this job template is to run tox for projects using this
6 # template.
7 #
8 # Required Variables:
9 # branch: git branch (eg. stable/lithium or master)
10 # Optional Variables:
11 # path: directory containing the project's tox.ini relative to
12 # the workspace. The default is the project root.
13 # pattern: ant file-path pattern relative to the workspace used to
14 # trigger the job
15
Andrew Grimbergce2286c2017-01-31 05:50:39 -080016 name: '{project-name}-{stream}-{subproject}-verify-python'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080017 path: '$WORKSPACE'
18
19 project-type: freestyle
20 concurrent: true
21 node: '{build-node}'
22
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080023 properties:
24 - ecomp-infra-properties:
25 build-days-to-keep: '{build-days-to-keep}'
26
Andrew Grimbergebc710a2017-01-30 12:59:38 -080027 parameters:
28 - ecomp-infra-parameters:
29 project: '{project}'
30 branch: '{branch}'
31 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080032 artifacts: '{archive-artifacts}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080033
34 scm:
35 - gerrit-trigger-scm:
36 refspec: '$GERRIT_REFSPEC'
37 choosing-strategy: 'gerrit'
38
39 wrappers:
40 - ecomp-infra-wrappers:
41 build-timeout: '{build-timeout}'
42
43 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080044 - gerrit-trigger-patch-submitted:
45 server: '{server-name}'
46 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080047 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080048 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080049
50 builders:
51 - shell: |
52 virtualenv $WORKSPACE/venv-tox
53 source $WORKSPACE/venv-tox/bin/activate
54 pip install --upgrade pip
55 pip install --upgrade tox argparse
56 pip freeze
57 cd $WORKSPACE/{path}
58 tox
59
Andrew Grimberg83f7ebf2017-01-31 04:44:44 -080060# publishers:
61# - ecomp-infra-shiplogs:
62# maven-version: 'mvn33'