Browse Source

Import legacy jobs

Import legacy jobs from openstack-zuul-jobs and rename them
according to Zuul v3 naming conventions.

Change-Id: I56e23dd4352ee34ed2a129cc853cc33616559dca
Andreas Jaeger 7 months ago
parent
commit
96b850e2e0

+ 51
- 5
.zuul.yaml View File

@@ -1,3 +1,49 @@
1
+- job:
2
+    name: networking-bgpvpn-bagpipe-dsvm-functional
3
+    parent: legacy-dsvm-base
4
+    run: playbooks/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml
5
+    post-run: playbooks/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml
6
+    timeout: 7800
7
+    required-projects:
8
+      - openstack-infra/devstack-gate
9
+      - openstack/networking-bagpipe
10
+      - openstack/networking-bgpvpn
11
+
12
+- job:
13
+    name: networking-bgpvpn-bagpipe-dsvm-install
14
+    parent: legacy-dsvm-base
15
+    run: playbooks/networking-bgpvpn-bagpipe-dsvm-install/run.yaml
16
+    post-run: playbooks/networking-bgpvpn-bagpipe-dsvm-install/post.yaml
17
+    timeout: 7800
18
+    required-projects:
19
+      - openstack-infra/devstack-gate
20
+      - openstack/networking-bagpipe
21
+      - openstack/networking-bgpvpn
22
+
23
+- job:
24
+    name: networking-bgpvpn-dsvm-functional
25
+    parent: legacy-dsvm-base
26
+    run: playbooks/networking-bgpvpn-dsvm-functional/run.yaml
27
+    post-run: playbooks/networking-bgpvpn-dsvm-functional/post.yaml
28
+    timeout: 7800
29
+    required-projects:
30
+      - openstack-infra/devstack-gate
31
+      - openstack/networking-bgpvpn
32
+      - openstack/neutron
33
+      - openstack/networking-bagpipe
34
+      - openstack/networking-odl
35
+      - openstack/horizon
36
+
37
+- job:
38
+    name: networking-bgpvpn-dsvm-install
39
+    parent: legacy-dsvm-base
40
+    run: playbooks/networking-bgpvpn-dsvm-install/run.yaml
41
+    post-run: playbooks/networking-bgpvpn-dsvm-install/post.yaml
42
+    timeout: 7800
43
+    required-projects:
44
+      - openstack-infra/devstack-gate
45
+      - openstack/networking-bgpvpn
46
+
1 47
 - project:
2 48
     templates:
3 49
       - openstack-python-jobs-neutron
@@ -52,7 +98,7 @@
52 98
               - openstack/neutron
53 99
               - openstack/networking-bagpipe
54 100
               - openstack/horizon
55
-        - legacy-networking-bgpvpn-dsvm-functional
101
+        - networking-bgpvpn-dsvm-functional
56 102
     gate:
57 103
       jobs:
58 104
         - openstack-tox-lower-constraints:
@@ -81,12 +127,12 @@
81 127
             irrelevant-files:
82 128
               - ^(test-|)requirements.txt$
83 129
               - ^setup.cfg$
84
-        - legacy-networking-bgpvpn-dsvm-functional
130
+        - networking-bgpvpn-dsvm-functional
85 131
     experimental:
86 132
       jobs:
87
-        - legacy-networking-bgpvpn-dsvm-install
88
-        - legacy-networking-bgpvpn-bagpipe-dsvm-install
89
-        - legacy-networking-bgpvpn-bagpipe-dsvm-functional
133
+        - networking-bgpvpn-dsvm-install
134
+        - networking-bgpvpn-bagpipe-dsvm-install
135
+        - networking-bgpvpn-bagpipe-dsvm-functional
90 136
     post:
91 137
       jobs:
92 138
         - publish-openstack-python-branch-tarball:

+ 15
- 0
playbooks/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml View File

@@ -0,0 +1,15 @@
1
+- hosts: primary
2
+  tasks:
3
+
4
+    - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5
+      synchronize:
6
+        src: '{{ ansible_user_dir }}/workspace/'
7
+        dest: '{{ zuul.executor.log_root }}'
8
+        mode: pull
9
+        copy_links: true
10
+        verify_host: true
11
+        rsync_opts:
12
+          - --include=/logs/**
13
+          - --include=*/
14
+          - --exclude=*
15
+          - --prune-empty-dirs

+ 80
- 0
playbooks/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml View File

@@ -0,0 +1,80 @@
1
+- hosts: all
2
+  name: Autoconverted job legacy-networking-bgpvpn-bagpipe-dsvm-functional from old
3
+    job gate-networking-bgpvpn-bagpipe-dsvm-functional-ubuntu-xenial
4
+  tasks:
5
+
6
+    - name: Ensure legacy workspace directory
7
+      file:
8
+        path: '{{ ansible_user_dir }}/workspace'
9
+        state: directory
10
+
11
+    - shell:
12
+        cmd: |
13
+          set -e
14
+          set -x
15
+          cat > clonemap.yaml << EOF
16
+          clonemap:
17
+            - name: openstack-infra/devstack-gate
18
+              dest: devstack-gate
19
+          EOF
20
+          /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
21
+              git://git.openstack.org \
22
+              openstack-infra/devstack-gate
23
+        executable: /bin/bash
24
+        chdir: '{{ ansible_user_dir }}/workspace'
25
+      environment: '{{ zuul | zuul_legacy_vars }}'
26
+
27
+    - shell:
28
+        cmd: |
29
+          set -e
30
+          set -x
31
+          cat << 'EOF' >>"/tmp/dg-local.conf"
32
+          [[local|localrc]]
33
+          enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn
34
+
35
+          EOF
36
+        executable: /bin/bash
37
+        chdir: '{{ ansible_user_dir }}/workspace'
38
+      environment: '{{ zuul | zuul_legacy_vars }}'
39
+
40
+    - shell:
41
+        cmd: |
42
+          set -e
43
+          set -x
44
+          export PYTHONUNBUFFERED=true
45
+          export DEVSTACK_GATE_NEUTRON=1
46
+          export BRANCH_OVERRIDE=default
47
+          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
48
+              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
49
+          fi
50
+          # Because we are testing a non standard project, add
51
+          # our project repository. This makes zuul do the right
52
+          # reference magic for testing changes.
53
+          export PROJECTS="openstack/networking-bgpvpn $PROJECTS"
54
+          export PROJECTS="openstack/networking-bagpipe $PROJECTS"
55
+
56
+          # Keep localrc to be able to set some vars in pre_test_hook
57
+          export KEEP_LOCALRC=1
58
+
59
+          function pre_test_hook {
60
+              . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-bagpipe-functional
61
+          }
62
+          export -f pre_test_hook
63
+
64
+          function gate_hook {
65
+              . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-bagpipe-functional
66
+          }
67
+          export -f gate_hook
68
+
69
+          function post_test_hook {
70
+              . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-bagpipe-functional
71
+          }
72
+          export -f post_test_hook
73
+
74
+          export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-bagpipe-rc
75
+
76
+          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
77
+          ./safe-devstack-vm-gate-wrap.sh
78
+        executable: /bin/bash
79
+        chdir: '{{ ansible_user_dir }}/workspace'
80
+      environment: '{{ zuul | zuul_legacy_vars }}'

+ 15
- 0
playbooks/networking-bgpvpn-bagpipe-dsvm-install/post.yaml View File

@@ -0,0 +1,15 @@
1
+- hosts: primary
2
+  tasks:
3
+
4
+    - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5
+      synchronize:
6
+        src: '{{ ansible_user_dir }}/workspace/'
7
+        dest: '{{ zuul.executor.log_root }}'
8
+        mode: pull
9
+        copy_links: true
10
+        verify_host: true
11
+        rsync_opts:
12
+          - --include=/logs/**
13
+          - --include=*/
14
+          - --exclude=*
15
+          - --prune-empty-dirs

+ 80
- 0
playbooks/networking-bgpvpn-bagpipe-dsvm-install/run.yaml View File

@@ -0,0 +1,80 @@
1
+- hosts: all
2
+  name: Autoconverted job legacy-networking-bgpvpn-bagpipe-dsvm-install from old job
3
+    gate-networking-bgpvpn-bagpipe-dsvm-install-ubuntu-xenial
4
+  tasks:
5
+
6
+    - name: Ensure legacy workspace directory
7
+      file:
8
+        path: '{{ ansible_user_dir }}/workspace'
9
+        state: directory
10
+
11
+    - shell:
12
+        cmd: |
13
+          set -e
14
+          set -x
15
+          cat > clonemap.yaml << EOF
16
+          clonemap:
17
+            - name: openstack-infra/devstack-gate
18
+              dest: devstack-gate
19
+          EOF
20
+          /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
21
+              git://git.openstack.org \
22
+              openstack-infra/devstack-gate
23
+        executable: /bin/bash
24
+        chdir: '{{ ansible_user_dir }}/workspace'
25
+      environment: '{{ zuul | zuul_legacy_vars }}'
26
+
27
+    - shell:
28
+        cmd: |
29
+          set -e
30
+          set -x
31
+          cat << 'EOF' >>"/tmp/dg-local.conf"
32
+          [[local|localrc]]
33
+          enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn
34
+
35
+          EOF
36
+        executable: /bin/bash
37
+        chdir: '{{ ansible_user_dir }}/workspace'
38
+      environment: '{{ zuul | zuul_legacy_vars }}'
39
+
40
+    - shell:
41
+        cmd: |
42
+          set -e
43
+          set -x
44
+          export PYTHONUNBUFFERED=true
45
+          export DEVSTACK_GATE_NEUTRON=1
46
+          export BRANCH_OVERRIDE=default
47
+          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
48
+              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
49
+          fi
50
+          # Because we are testing a non standard project, add
51
+          # our project repository. This makes zuul do the right
52
+          # reference magic for testing changes.
53
+          export PROJECTS="openstack/networking-bgpvpn $PROJECTS"
54
+          export PROJECTS="openstack/networking-bagpipe $PROJECTS"
55
+
56
+          # Keep localrc to be able to set some vars in pre_test_hook
57
+          export KEEP_LOCALRC=1
58
+
59
+          function pre_test_hook {
60
+              . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-bagpipe-install
61
+          }
62
+          export -f pre_test_hook
63
+
64
+          function gate_hook {
65
+              . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-bagpipe-install
66
+          }
67
+          export -f gate_hook
68
+
69
+          function post_test_hook {
70
+              . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-bagpipe-install
71
+          }
72
+          export -f post_test_hook
73
+
74
+          export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-bagpipe-rc
75
+
76
+          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
77
+          ./safe-devstack-vm-gate-wrap.sh
78
+        executable: /bin/bash
79
+        chdir: '{{ ansible_user_dir }}/workspace'
80
+      environment: '{{ zuul | zuul_legacy_vars }}'

+ 15
- 0
playbooks/networking-bgpvpn-dsvm-functional/post.yaml View File

@@ -0,0 +1,15 @@
1
+- hosts: primary
2
+  tasks:
3
+
4
+    - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5
+      synchronize:
6
+        src: '{{ ansible_user_dir }}/workspace/'
7
+        dest: '{{ zuul.executor.log_root }}'
8
+        mode: pull
9
+        copy_links: true
10
+        verify_host: true
11
+        rsync_opts:
12
+          - --include=/logs/**
13
+          - --include=*/
14
+          - --exclude=*
15
+          - --prune-empty-dirs

+ 78
- 0
playbooks/networking-bgpvpn-dsvm-functional/run.yaml View File

@@ -0,0 +1,78 @@
1
+- hosts: all
2
+  name: Autoconverted job legacy-networking-bgpvpn-dsvm-functional from old job gate-networking-bgpvpn-dsvm-functional-ubuntu-xenial
3
+  tasks:
4
+
5
+    - name: Ensure legacy workspace directory
6
+      file:
7
+        path: '{{ ansible_user_dir }}/workspace'
8
+        state: directory
9
+
10
+    - shell:
11
+        cmd: |
12
+          set -e
13
+          set -x
14
+          cat > clonemap.yaml << EOF
15
+          clonemap:
16
+            - name: openstack-infra/devstack-gate
17
+              dest: devstack-gate
18
+          EOF
19
+          /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20
+              git://git.openstack.org \
21
+              openstack-infra/devstack-gate
22
+        executable: /bin/bash
23
+        chdir: '{{ ansible_user_dir }}/workspace'
24
+      environment: '{{ zuul | zuul_legacy_vars }}'
25
+
26
+    - shell:
27
+        cmd: |
28
+          set -e
29
+          set -x
30
+          cat << 'EOF' >>"/tmp/dg-local.conf"
31
+          [[local|localrc]]
32
+          enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn
33
+
34
+          EOF
35
+        executable: /bin/bash
36
+        chdir: '{{ ansible_user_dir }}/workspace'
37
+      environment: '{{ zuul | zuul_legacy_vars }}'
38
+
39
+    - shell:
40
+        cmd: |
41
+          set -e
42
+          set -x
43
+          export PYTHONUNBUFFERED=true
44
+          export DEVSTACK_GATE_NEUTRON=1
45
+          export BRANCH_OVERRIDE=default
46
+          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
47
+              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
48
+          fi
49
+          # Because we are testing a non standard project, add
50
+          # our project repository. This makes zuul do the right
51
+          # reference magic for testing changes.
52
+          export PROJECTS="openstack/networking-bgpvpn $PROJECTS"
53
+
54
+          # Keep localrc to be able to set some vars in pre_test_hook
55
+          export KEEP_LOCALRC=1
56
+
57
+          function pre_test_hook {
58
+              . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-functional
59
+          }
60
+          export -f pre_test_hook
61
+
62
+          function gate_hook {
63
+              . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-functional
64
+          }
65
+          export -f gate_hook
66
+
67
+          function post_test_hook {
68
+              . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-functional
69
+          }
70
+          export -f post_test_hook
71
+
72
+          export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-rc
73
+
74
+          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
75
+          ./safe-devstack-vm-gate-wrap.sh
76
+        executable: /bin/bash
77
+        chdir: '{{ ansible_user_dir }}/workspace'
78
+      environment: '{{ zuul | zuul_legacy_vars }}'

+ 15
- 0
playbooks/networking-bgpvpn-dsvm-install/post.yaml View File

@@ -0,0 +1,15 @@
1
+- hosts: primary
2
+  tasks:
3
+
4
+    - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
5
+      synchronize:
6
+        src: '{{ ansible_user_dir }}/workspace/'
7
+        dest: '{{ zuul.executor.log_root }}'
8
+        mode: pull
9
+        copy_links: true
10
+        verify_host: true
11
+        rsync_opts:
12
+          - --include=/logs/**
13
+          - --include=*/
14
+          - --exclude=*
15
+          - --prune-empty-dirs

+ 78
- 0
playbooks/networking-bgpvpn-dsvm-install/run.yaml View File

@@ -0,0 +1,78 @@
1
+- hosts: all
2
+  name: Autoconverted job legacy-networking-bgpvpn-dsvm-install from old job gate-networking-bgpvpn-dsvm-install-ubuntu-xenial
3
+  tasks:
4
+
5
+    - name: Ensure legacy workspace directory
6
+      file:
7
+        path: '{{ ansible_user_dir }}/workspace'
8
+        state: directory
9
+
10
+    - shell:
11
+        cmd: |
12
+          set -e
13
+          set -x
14
+          cat > clonemap.yaml << EOF
15
+          clonemap:
16
+            - name: openstack-infra/devstack-gate
17
+              dest: devstack-gate
18
+          EOF
19
+          /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
20
+              git://git.openstack.org \
21
+              openstack-infra/devstack-gate
22
+        executable: /bin/bash
23
+        chdir: '{{ ansible_user_dir }}/workspace'
24
+      environment: '{{ zuul | zuul_legacy_vars }}'
25
+
26
+    - shell:
27
+        cmd: |
28
+          set -e
29
+          set -x
30
+          cat << 'EOF' >>"/tmp/dg-local.conf"
31
+          [[local|localrc]]
32
+          enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn
33
+
34
+          EOF
35
+        executable: /bin/bash
36
+        chdir: '{{ ansible_user_dir }}/workspace'
37
+      environment: '{{ zuul | zuul_legacy_vars }}'
38
+
39
+    - shell:
40
+        cmd: |
41
+          set -e
42
+          set -x
43
+          export PYTHONUNBUFFERED=true
44
+          export DEVSTACK_GATE_NEUTRON=1
45
+          export BRANCH_OVERRIDE=default
46
+          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
47
+              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
48
+          fi
49
+          # Because we are testing a non standard project, add
50
+          # our project repository. This makes zuul do the right
51
+          # reference magic for testing changes.
52
+          export PROJECTS="openstack/networking-bgpvpn $PROJECTS"
53
+
54
+          # Keep localrc to be able to set some vars in pre_test_hook
55
+          export KEEP_LOCALRC=1
56
+
57
+          function pre_test_hook {
58
+              . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-install
59
+          }
60
+          export -f pre_test_hook
61
+
62
+          function gate_hook {
63
+              . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-install
64
+          }
65
+          export -f gate_hook
66
+
67
+          function post_test_hook {
68
+              . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-install
69
+          }
70
+          export -f post_test_hook
71
+
72
+          export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-rc
73
+
74
+          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
75
+          ./safe-devstack-vm-gate-wrap.sh
76
+        executable: /bin/bash
77
+        chdir: '{{ ansible_user_dir }}/workspace'
78
+      environment: '{{ zuul | zuul_legacy_vars }}'

Loading…
Cancel
Save