summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2018-09-08 17:23:47 +0200
committerAndreas Jaeger <aj@suse.com>2018-09-10 06:27:00 +0200
commit78bff4ec5c729e63db931f09149e1ac8c9635fc8 (patch)
treea9cd251d44ec0259c9b7c51439517d0d88cbb5ff
parentfc06b6a7568bc7c12cf32634b601c01c137691c8 (diff)
Import legacy-dashboard-dsvm-selenium-packagestable/pike
Import legacy job legacy-dashboard-dsvm-selenium-package from openstack-zuul-jobs, rename it according to naming rules. Change-Id: Icf7312bb73c2b23f7f6090fa8ffafa0fa279d830 (cherry picked from commit 821f50fcf7c4e023addce0a62cec6465c270c3b7)
Notes
Notes (review): Code-Review+2: zhurong <aaronzhu1121@gmail.com> Workflow+1: zhurong <aaronzhu1121@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 10 Sep 2018 05:30:06 +0000 Reviewed-on: https://review.openstack.org/601167 Project: openstack/murano-dashboard Branch: refs/heads/stable/pike
-rw-r--r--.zuul.yaml14
-rw-r--r--playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml80
-rw-r--r--playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml67
3 files changed, 160 insertions, 1 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 357fc27..f71495e 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -18,4 +18,16 @@
18 - openstack/horizon 18 - openstack/horizon
19 experimental: 19 experimental:
20 jobs: 20 jobs:
21 - legacy-dashboard-dsvm-selenium-package 21 - murano-dashboard-selenium-package
22
23- job:
24 name: murano-dashboard-selenium-package
25 parent: legacy-dsvm-base
26 run: playbooks/dashboard-dsvm-selenium-package/run.yaml
27 post-run: playbooks/dashboard-dsvm-selenium-package/post.yaml
28 timeout: 7800
29 required-projects:
30 - openstack-infra/devstack-gate
31 - openstack/murano
32 - openstack/murano-dashboard
33 - openstack/python-muranoclient
diff --git a/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml b/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml
new file mode 100644
index 0000000..dac8753
--- /dev/null
+++ b/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml
@@ -0,0 +1,80 @@
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=**/*nose_results.html
13 - --include=*/
14 - --exclude=*
15 - --prune-empty-dirs
16
17 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
18 synchronize:
19 src: '{{ ansible_user_dir }}/workspace/'
20 dest: '{{ zuul.executor.log_root }}'
21 mode: pull
22 copy_links: true
23 verify_host: true
24 rsync_opts:
25 - --include=**/*testr_results.html.gz
26 - --include=*/
27 - --exclude=*
28 - --prune-empty-dirs
29
30 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
31 synchronize:
32 src: '{{ ansible_user_dir }}/workspace/'
33 dest: '{{ zuul.executor.log_root }}'
34 mode: pull
35 copy_links: true
36 verify_host: true
37 rsync_opts:
38 - --include=/.testrepository/tmp*
39 - --include=*/
40 - --exclude=*
41 - --prune-empty-dirs
42
43 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
44 synchronize:
45 src: '{{ ansible_user_dir }}/workspace/'
46 dest: '{{ zuul.executor.log_root }}'
47 mode: pull
48 copy_links: true
49 verify_host: true
50 rsync_opts:
51 - --include=**/*testrepository.subunit.gz
52 - --include=*/
53 - --exclude=*
54 - --prune-empty-dirs
55
56 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
57 synchronize:
58 src: '{{ ansible_user_dir }}/workspace/'
59 dest: '{{ zuul.executor.log_root }}/tox'
60 mode: pull
61 copy_links: true
62 verify_host: true
63 rsync_opts:
64 - --include=/.tox/*/log/*
65 - --include=*/
66 - --exclude=*
67 - --prune-empty-dirs
68
69 - name: Copy files from {{ ansible_user_dir }}/workspace/ on node
70 synchronize:
71 src: '{{ ansible_user_dir }}/workspace/'
72 dest: '{{ zuul.executor.log_root }}'
73 mode: pull
74 copy_links: true
75 verify_host: true
76 rsync_opts:
77 - --include=/logs/**
78 - --include=*/
79 - --exclude=*
80 - --prune-empty-dirs
diff --git a/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml b/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml
new file mode 100644
index 0000000..d6cede5
--- /dev/null
+++ b/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml
@@ -0,0 +1,67 @@
1- hosts: all
2 name: Autoconverted job legacy-dashboard-dsvm-selenium-package from old job gate-dashboard-dsvm-selenium-package-ubuntu-xenial-nv
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 murano git://git.openstack.org/openstack/murano
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_TEMPEST=0
45 export DEVSTACK_GATE_TEMPEST_NOTESTS=1
46 export DEVSTACK_GATE_NEUTRON=1
47
48 export PROJECTS="openstack/murano $PROJECTS"
49 export PROJECTS="openstack/murano-dashboard $PROJECTS"
50 export PROJECTS="openstack/python-muranoclient $PROJECTS"
51
52 export BRANCH_OVERRIDE=default
53 if [ "$BRANCH_OVERRIDE" != "default" ] ; then
54 export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
55 fi
56
57 function post_test_hook {
58 source $BASE/new/murano-dashboard/muranodashboard/tests/contrib/post_test_hook_experimental.sh \
59 package
60 }
61 export -f post_test_hook
62
63 cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
64 ./safe-devstack-vm-gate-wrap.sh
65 executable: /bin/bash
66 chdir: '{{ ansible_user_dir }}/workspace'
67 environment: '{{ zuul | zuul_legacy_vars }}'