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-08 17:23:47 +0200
commit821f50fcf7c4e023addce0a62cec6465c270c3b7 (patch)
treeba143f5177b70e35cb608c380a1bb46d37d7ca9f
parent7cd0180eb2d490fa9122eb7533e918d05ac0c5ea (diff)
Import legacy-dashboard-dsvm-selenium-packageHEADmaster
Import legacy job legacy-dashboard-dsvm-selenium-package from openstack-zuul-jobs, rename it according to naming rules. Change-Id: Icf7312bb73c2b23f7f6090fa8ffafa0fa279d830
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 02:21:17 +0000 Reviewed-on: https://review.openstack.org/600945 Project: openstack/murano-dashboard Branch: refs/heads/master
-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 38fdb84..6caa380 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -16,7 +16,7 @@
16 - horizon-openstack-tox-python3-django111 16 - horizon-openstack-tox-python3-django111
17 experimental: 17 experimental:
18 jobs: 18 jobs:
19 - legacy-dashboard-dsvm-selenium-package 19 - murano-dashboard-selenium-package
20 20
21- job: 21- job:
22 name: murano-dashboard-sanity-check 22 name: murano-dashboard-sanity-check
@@ -42,3 +42,15 @@
42 - openstack/python-muranoclient 42 - openstack/python-muranoclient
43 - openstack/horizon 43 - openstack/horizon
44 - openstack/heat-dashboard 44 - openstack/heat-dashboard
45
46- job:
47 name: murano-dashboard-selenium-package
48 parent: legacy-dsvm-base
49 run: playbooks/dashboard-dsvm-selenium-package/run.yaml
50 post-run: playbooks/dashboard-dsvm-selenium-package/post.yaml
51 timeout: 7800
52 required-projects:
53 - openstack-infra/devstack-gate
54 - openstack/murano
55 - openstack/murano-dashboard
56 - 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 }}'