Add CONTRIBUTING file
[releng/builder.git] / jjb / ovsdb / ovsdb-openstack-tempest.yaml
1 - project:
2     name: ovsdb-openstack-tempest
3     jobs:
4         - 'ovsdb-openstack-tempest-{openstack}-{odl}'
5
6     openstack:
7         - mitaka:
8             openstack-branch: 'master'
9         - liberty:
10             openstack-branch: 'stable/liberty'
11     # can add kilo if it's needed, but would result in two more hour long jobs
12
13     odl:
14         - beryllium:
15             odl-version: 'beryllium'
16         - lithium:
17             odl-version: 'lithium'
18
19 - job-template:
20     name: 'ovsdb-openstack-tempest-{openstack}-{odl}'
21
22     project-type: freestyle
23     node: dynamic_robot
24
25     logrotate:
26         daysToKeep: '{build-days-to-keep}'
27         numToKeep: '{build-num-to-keep}'
28         artifactDaysToKeep: '{build-artifact-days-to-keep}'
29         artifactNumToKeep: '{build-num-to-keep}'
30
31     parameters:
32         - project-parameter:
33             project: 'integration/test'
34         - integration-patch-refspec:
35             branch: 'master'
36         - string:
37             name: OPENSTACK_BRANCH
38             default: '{openstack-branch}'
39             description: 'Openstack branch to use with devstack'
40         - string:
41             name: ODL_VERSION
42             default: '{odl-version}'
43             description: 'OpenDaylight version to use with devstack + networking_odl project'
44         - string:
45             name: TEMPEST_REGEX
46             default: 'tempest.api.network'
47             description: 'Default grouping of tempest tests to run'
48
49     scm:
50         - integration-gerrit-scm:
51             credentials-id: '{ssh-credentials}'
52             basedir: 'test'
53             refspec: '$PATCHREFSPEC'
54             branch: 'master'
55
56     wrappers:
57           - build-timeout
58           - jclouds:
59               instances:
60                 - rk-c7-devstack:
61                     cloud-name: 'Rackspace DFW - Devstack'
62                     count: '1'
63                     stop-on-terminate: False
64           - ssh-agent-credentials:
65               users:
66                   - '{ssh-credentials}'
67
68     # Trigger jobs (daily)
69     schedule: 'H H * * *'
70
71     builders:
72         - integration-install-robotframework
73         - inject:
74             properties-file: 'env.properties'
75         - integration-get-slave-addresses
76         - inject:
77             properties-file: 'slave_addresses.txt'
78         - shell: 'pybot -e exclude -v WORKSPACE:/tmp -v USER_HOME:$HOME -L TRACE -v DEVSTACK_SYSTEM_USER:$USER
79                         -v DEVSTACK_SYSTEM_IP:$ODL_SYSTEM_IP -v DEFAULT_LINUX_PROMPT:\]\>
80                         -v OPENSTACK_BRANCH:$OPENSTACK_BRANCH -v ODL_VERSION:$ODL_VERSION
81                         -v TEMPEST_REGEX:$TEMPEST_REGEX $WORKSPACE/test/csit/suites/ovsdb/Devstack_Tempest_Tests/
82                         || true'
83         - shell: 'scp $ODL_SYSTEM_IP:/opt/stack/logs/devstacklog.txt $WORKSPACE/'
84         - integration-cleanup-tmp
85
86     publishers:
87         - integration-robot:
88             unstable-if: 0.0
89             pass-if: 100.0
90         - archive:
91             artifacts: 'devstacklog.txt'
92         - email-notification:
93             email-prefix: '[ovsdb]'