2 name: '{name}-verify-python-{stream}'
4 # Job template for python verify jobs
6 # The purpose of this job template is to run tox for projects using this
10 # stream: release stream (eg. stable-lithium or beryllium)
11 # branch: git branch (eg. stable/lithium or master)
12 # toxdir: directory containing the project's tox.ini relative to
15 project-type: freestyle
22 artifactDaysToKeep: '-1'
23 artifactNumToKeep: '-1'
30 - gerrit-refspec-parameter:
31 refspec: 'refs/heads/{branch}'
35 credentials-id: '{ssh-credentials}'
38 refspec: '$GERRIT_REFSPEC'
40 - 'origin/$GERRIT_BRANCH'
42 choosing-strategy: 'gerrit'
46 - ssh-agent-credentials:
52 server-name: 'OpenDaylight'
54 - patchset-created-event:
55 exclude-drafts: 'true'
56 exclude-trivial-rebase: 'false'
57 exclude-no-code-change: 'true'
58 - draft-published-event
59 - comment-added-contains-event:
60 comment-contains-value: 'recheck'
61 - comment-added-contains-event:
62 comment-contains-value: 'reverify'
64 - project-compare-type: 'ANT'
65 project-pattern: '{project}'
67 - branch-compare-type: 'ANT'
68 branch-pattern: '**/{branch}'
71 pattern: '{toxdir}/**'
75 virtualenv $WORKSPACE/venv-tox
76 source $WORKSPACE/venv-tox/bin/activate
77 pip install --upgrade pip
78 pip install --upgrade tox argparse
80 cd $WORKSPACE/repo/{toxdir}
85 email-prefix: '[{project}]'