cae8e2bafd
This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
82 lines
2.9 KiB
YAML
82 lines
2.9 KiB
YAML
- hosts: all
|
|
name: Autoconverted job legacy-tempest-dsvm-monasca-transform-python35-functional
|
|
from old job gate-tempest-dsvm-monasca-transform-python35-functional-nv
|
|
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/devstack-gate
|
|
dest: devstack-gate
|
|
EOF
|
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
|
https://opendev.org \
|
|
openstack/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 monasca-api https://opendev.org/openstack/monasca-api
|
|
enable_plugin monasca-transform https://opendev.org/openstack/monasca-transform
|
|
|
|
EOF
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
if [ "python35" == "python35" ]; then
|
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
|
else
|
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
|
fi
|
|
|
|
export ENABLED_SERVICES=tempest
|
|
export PROJECTS="openstack/monasca-transform $PROJECTS"
|
|
export PROJECTS="openstack/monasca-api $PROJECTS"
|
|
export PROJECTS="openstack/monasca-persister $PROJECTS"
|
|
export PROJECTS="openstack/monasca-common $PROJECTS"
|
|
export PROJECTS="openstack/monasca-agent $PROJECTS"
|
|
export PROJECTS="openstack/monasca-notification $PROJECTS"
|
|
export PROJECTS="openstack/monasca-thresh $PROJECTS"
|
|
export PROJECTS="openstack/monasca-statsd $PROJECTS"
|
|
export PROJECTS="openstack/python-monascaclient $PROJECTS"
|
|
export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS"
|
|
export PROJECTS="openstack/monasca-ui $PROJECTS"
|
|
|
|
function pre_test_hook {
|
|
source $BASE/new/monasca-transform/devstack/pre_test_hook.sh
|
|
}
|
|
export -f pre_test_hook
|
|
|
|
function post_test_hook {
|
|
# Configure and run tempest on monasca-transform installation
|
|
source $BASE/new/monasca-transform/devstack/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 }}'
|