Move legacy jobs to project
This patch implements first step in zuulv3 migration guide [1]: Move jobs to oaktree repo [1] https://docs.openstack.org/infra/manual/zuulv3.html#legacy-job-migration-details Change-Id: Ic15051f2ab1584685053cd475685639fa33e8be0
This commit is contained in:
parent
a9c1b53a5f
commit
5a57f654e5
|
@ -0,0 +1,21 @@
|
|||
- project:
|
||||
name: openstack/oaktree
|
||||
check:
|
||||
jobs:
|
||||
- oaktree-dsvm-functional
|
||||
gate:
|
||||
queue: oaktree
|
||||
jobs:
|
||||
- oaktree-dsvm-functional
|
||||
|
||||
- job:
|
||||
name: oaktree-dsvm-functional
|
||||
parent: legacy-dsvm-base
|
||||
run: playbooks/legacy/oaktree-dsvm-functional/run
|
||||
post-run: playbooks/legacy/oaktree-dsvm-functional/post
|
||||
timeout: 4200
|
||||
required-projects:
|
||||
- openstack-infra/devstack-gate
|
||||
- openstack-infra/shade
|
||||
- openstack/oaktree
|
||||
- openstack/oaktreemodel
|
|
@ -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
|
|
@ -0,0 +1,66 @@
|
|||
- hosts: all
|
||||
name: Autoconverted job legacy-oaktree-dsvm-functional from old job gate-oaktree-dsvm-functional
|
||||
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 oaktree git://git.openstack.org/openstack/oaktree
|
||||
|
||||
EOF
|
||||
executable: /bin/bash
|
||||
chdir: '{{ ansible_user_dir }}/workspace'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
||||
- shell:
|
||||
cmd: |
|
||||
set -e
|
||||
set -x
|
||||
export GOPATH=$HOME/go
|
||||
export PATH=$GOPATH/bin:$PATH
|
||||
export PYTHONUNBUFFERED=true
|
||||
export DEVSTACK_GATE_NEUTRON=1
|
||||
|
||||
export DEVSTACK_PROJECT_FROM_GIT="shade"
|
||||
export DEVSTACK_PROJECT_FROM_GIT+=",oaktree"
|
||||
export DEVSTACK_PROJECT_FROM_GIT+=",oaktreemodel"
|
||||
|
||||
export BRANCH_OVERRIDE=default
|
||||
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
||||
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
||||
fi
|
||||
|
||||
function post_test_hook {
|
||||
python $BASE/new/oaktree/devstack/test.py
|
||||
}
|
||||
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 }}'
|
Loading…
Reference in New Issue