From 1a8cc8c1ebac5fa0359cb3ed433bc60afba30972 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 4 Sep 2018 18:20:02 +0200 Subject: Import python-barbicanclient-dsvm Move definition of job python-barbicanclient-dsvm in-repo from openstack-zuul-jobs. Change-Id: Id1cc0523bfaf26574730fc103d353aea21ac33b0 --- .zuul.yaml | 16 ++++++- playbooks/python-barbicanclient-dsvm/post.yaml | 15 ++++++ playbooks/python-barbicanclient-dsvm/run.yaml | 64 ++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 playbooks/python-barbicanclient-dsvm/post.yaml create mode 100644 playbooks/python-barbicanclient-dsvm/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 13cd748..41eebd4 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,3 +1,15 @@ +- job: + name: python-barbicanclient-dsvm + parent: legacy-dsvm-base + run: playbooks/python-barbicanclient-dsvm/run.yaml + post-run: playbooks/python-barbicanclient-dsvm/post.yaml + timeout: 4200 + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + - project: templates: - openstack-python-jobs @@ -9,8 +21,8 @@ check: jobs: - openstack-tox-lower-constraints - - legacy-python-barbicanclient-dsvm + - python-barbicanclient-dsvm gate: jobs: - openstack-tox-lower-constraints - - legacy-python-barbicanclient-dsvm + - python-barbicanclient-dsvm diff --git a/playbooks/python-barbicanclient-dsvm/post.yaml b/playbooks/python-barbicanclient-dsvm/post.yaml new file mode 100644 index 0000000..e07f551 --- /dev/null +++ b/playbooks/python-barbicanclient-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: primary + tasks: + + - name: Copy files from {{ ansible_user_dir }}/workspace/ on node + synchronize: + src: '{{ ansible_user_dir }}/workspace/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/python-barbicanclient-dsvm/run.yaml b/playbooks/python-barbicanclient-dsvm/run.yaml new file mode 100644 index 0000000..912d64c --- /dev/null +++ b/playbooks/python-barbicanclient-dsvm/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-python-barbicanclient-dsvm from old job gate-python-barbicanclient-dsvm-ubuntu-xenial + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export OVERRIDE_ENABLED_SERVICES=tempest,rabbit,mysql,key + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/python-barbicanclient/functionaltests + ./post_test_hook.sh + } + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' -- cgit v1.2.1