Merge "Move legacy jobs to project"

This commit is contained in:
Zuul 2018-01-02 06:52:00 +00:00 committed by Gerrit Code Review
commit 288b7c75f1
3 changed files with 86 additions and 0 deletions

17
.zuul.yaml Normal file
View File

@ -0,0 +1,17 @@
- project:
name: openstack/cyborg
check:
jobs:
- cyborg-devstack
- job:
name: cyborg-devstack
parent: legacy-dsvm-base
run: playbooks/legacy/cyborg-devstack/run.yaml
post-run: playbooks/legacy/cyborg-devstack/post.yaml
timeout: 4200
voting: false
required-projects:
- openstack-dev/devstack
- openstack-infra/devstack-gate
- openstack/cyborg

View File

@ -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

View File

@ -0,0 +1,54 @@
- hosts: all
name: Autoconverted job legacy-cyborg-devstack from old job gate-cyborg-devstack-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-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 cyborg git://git.openstack.org/openstack/cyborg
EOF
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
export PROJECTS="openstack/cyborg $PROJECTS"
export BRANCH_OVERRIDE=default
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
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 }}'