summaryrefslogtreecommitdiff
path: root/jenkins/jobs/designate.yaml
blob: c1bc3c2aa1fe8d9561f953ca4079f987788221f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
- job-template:
    name: 'gate-designate-dsvm-{designate-driver}'

    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 70
      - timestamps

    builders:
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          export PYTHONUNBUFFERED=true
          export DEVSTACK_GATE_INSTALL_TESTONLY=1
          export DEVSTACK_GATE_TEMPEST=1
          export DEVSTACK_GATE_TEMPEST_NOTESTS=1
          export DEVSTACK_GATE_DESIGNATE_DRIVER="{designate-driver}"
          export PROJECTS="openstack/designate $PROJECTS"
          export PROJECTS="openstack/python-designateclient $PROJECTS"
          export PROJECTS="openstack/designate-dashboard $PROJECTS"
          export PROJECTS="openstack/designate-tempest-plugin $PROJECTS"

          if [[ "stable/kilo stable/liberty" =~ $ZUUL_BRANCH ]]; then
              # Kilo/Liberty version uses the older 'hooks' approach to adding
              # the Designate plugin

              function gate_hook {{
                  cd /opt/stack/new/designate/contrib/devstack
                  ./gate_hook.sh
              }}
              export -f gate_hook

              function pre_test_hook {{
                  cd /opt/stack/new/designate/contrib/devstack
                  ./pre_test_hook.sh
              }}
              export -f pre_test_hook

              function post_test_hook {{
                  cd /opt/stack/new/designate/contrib/devstack
                  ./post_test_hook.sh
              }}
              export -f post_test_hook

          else
              # Otherwise, enable the Designate devstack plugin.
              export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate"

              function gate_hook {{
                  cd /opt/stack/new/designate/devstack/gate
                  ./gate_hook.sh
              }}
              export -f gate_hook

              function post_test_hook {{
                  cd /opt/stack/new/designate/devstack/gate
                  ./post_test_hook.sh
              }}
              export -f post_test_hook
          fi

          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
          ./safe-devstack-vm-gate-wrap.sh

    publishers:
      - devstack-logs
      - console-log


- job-template:
    name: 'gate-designate-dsvm-{designate-driver}-postgres'

    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 70
      - timestamps

    builders:
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          export PYTHONUNBUFFERED=true
          export DEVSTACK_GATE_INSTALL_TESTONLY=1
          export DEVSTACK_GATE_TEMPEST=1
          export DEVSTACK_GATE_TEMPEST_NOTESTS=1
          export DEVSTACK_GATE_DESIGNATE_DRIVER="{designate-driver}"
          export DEVSTACK_GATE_POSTGRES=1
          export PROJECTS="openstack/designate $PROJECTS"
          export PROJECTS="openstack/python-designateclient $PROJECTS"
          export PROJECTS="openstack/designate-dashboard $PROJECTS"

          if [[ "stable/kilo stable/liberty" =~ $ZUUL_BRANCH ]]; then
              # Kilo/Liberty version uses the older 'hooks' approach to adding
              # the Designate plugin

              function gate_hook {{
                  cd /opt/stack/new/designate/contrib/devstack
                  ./gate_hook.sh
              }}
              export -f gate_hook

              function pre_test_hook {{
                  cd /opt/stack/new/designate/contrib/devstack
                  ./pre_test_hook.sh
              }}
              export -f pre_test_hook

              function post_test_hook {{
                  cd /opt/stack/new/designate/contrib/devstack
                  ./post_test_hook.sh
              }}
              export -f post_test_hook

          else
              # Otherwise, enable the Designate devstack plugin.
              export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate"

              function gate_hook {{
                  cd /opt/stack/new/designate/devstack/gate
                  ./gate_hook.sh
              }}
              export -f gate_hook

              function post_test_hook {{
                  cd /opt/stack/new/designate/devstack/gate
                  ./post_test_hook.sh
              }}
              export -f post_test_hook
          fi

          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
          ./safe-devstack-vm-gate-wrap.sh

    publishers:
      - devstack-logs
      - console-log