Merge "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     triggers:
70         - timed:  'H H * * *'
71
72     builders:
73         - integration-install-robotframework
74         - inject:
75             properties-file: 'env.properties'
76         - integration-get-slave-addresses
77         - inject:
78             properties-file: 'slave_addresses.txt'
79         - shell: 'pybot -e exclude -v WORKSPACE:/tmp -v USER_HOME:$HOME -L TRACE -v DEVSTACK_SYSTEM_USER:$USER
80                         -v DEVSTACK_SYSTEM_IP:$ODL_SYSTEM_IP -v DEFAULT_LINUX_PROMPT:\]\>
81                         -v OPENSTACK_BRANCH:$OPENSTACK_BRANCH -v ODL_VERSION:$ODL_VERSION
82                         -v TEMPEST_REGEX:$TEMPEST_REGEX $WORKSPACE/test/csit/suites/ovsdb/Devstack_Tempest_Tests/
83                         || true'
84         - shell: 'scp $ODL_SYSTEM_IP:/opt/stack/logs/devstacklog.txt $WORKSPACE/'
85         - integration-cleanup-tmp
86
87     publishers:
88         - integration-robot:
89             unstable-if: 0.0
90             pass-if: 100.0
91         - archive:
92             artifacts: 'devstacklog.txt'
93         - email-notification:
94             email-prefix: '[ovsdb]'