From a81172aa55364f9d060bf9793b5f83eb41f79b7c Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Thu, 26 Oct 2017 19:47:38 +0000 Subject: [PATCH] Move legacy bifrost jobs in-tree Moving the legacy CI jobs into the bifrost repository so we may have direct control over the jobs in the repository. Change-Id: Ic51078addb9282f777689fd769fa3507a29f2990 --- .../post.yaml | 15 ++ .../run.yaml | 73 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 74 +++++++++ .../legacy/bifrost-integration-dhcp/post.yaml | 15 ++ .../legacy/bifrost-integration-dhcp/run.yaml | 73 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 74 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 74 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 73 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 73 +++++++++ .../post.yaml | 15 ++ .../run.yaml | 73 +++++++++ .../bifrost-integration-tinyipa/post.yaml | 15 ++ .../bifrost-integration-tinyipa/run.yaml | 72 +++++++++ zuul.d/legacy-bifrost-jobs.yaml | 146 ++++++++++++++++++ zuul.d/project.yaml | 79 ++++++++++ 20 files changed, 1019 insertions(+) create mode 100644 playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml create mode 100644 playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml create mode 100644 playbooks/legacy/bifrost-integration-dhcp/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-dhcp/run.yaml create mode 100644 playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml create mode 100644 playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml create mode 100644 playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml create mode 100644 playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml create mode 100644 playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml create mode 100644 playbooks/legacy/bifrost-integration-tinyipa/post.yaml create mode 100644 playbooks/legacy/bifrost-integration-tinyipa/run.yaml create mode 100644 zuul.d/legacy-bifrost-jobs.yaml create mode 100644 zuul.d/project.yaml diff --git a/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp-centos-7/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/legacy/bifrost-integration-dhcp-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml new file mode 100644 index 000000000..cb4942770 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dhcp-centos-7 from old job gate-bifrost-integration-dhcp-centos-7-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-inventory-dhcp.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/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/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml new file mode 100644 index 000000000..2cf8ddff5 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dhcp-opensuse-423 from old job + gate-bifrost-integration-dhcp-opensuse-423-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-inventory-dhcp.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dhcp/post.yaml b/playbooks/legacy/bifrost-integration-dhcp/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp/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/legacy/bifrost-integration-dhcp/run.yaml b/playbooks/legacy/bifrost-integration-dhcp/run.yaml new file mode 100644 index 000000000..6b001306a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dhcp from old job gate-bifrost-integration-dhcp-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-inventory-dhcp.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/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/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml new file mode 100644 index 000000000..74f9aed94 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dibipa-debian-centos-7 from old + job gate-bifrost-integration-dibipa-debian-centos-7-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-build-images.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/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/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml new file mode 100644 index 000000000..24d73c48b --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dibipa-debian-opensuse-423 from + old job gate-bifrost-integration-dibipa-debian-opensuse-423-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-build-images.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian/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/legacy/bifrost-integration-dibipa-debian/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml new file mode 100644 index 000000000..819d9ed71 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dibipa-debian from old job gate-bifrost-integration-dibipa-debian-ubuntu-xenial-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-build-images.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/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/legacy/bifrost-integration-tinyipa-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml new file mode 100644 index 000000000..6203afca9 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-tinyipa-centos-7 from old job + gate-bifrost-integration-tinyipa-centos-7 + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/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/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml new file mode 100644 index 000000000..03f51d440 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-tinyipa-opensuse-423 from old + job gate-bifrost-integration-tinyipa-opensuse-423 + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa/post.yaml new file mode 100644 index 000000000..e07f5510a --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa/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/legacy/bifrost-integration-tinyipa/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa/run.yaml new file mode 100644 index 000000000..3d4e4282d --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-tinyipa from old job gate-bifrost-integration-tinyipa-ubuntu-xenial + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost.sh + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/zuul.d/legacy-bifrost-jobs.yaml b/zuul.d/legacy-bifrost-jobs.yaml new file mode 100644 index 000000000..e43c0d50f --- /dev/null +++ b/zuul.d/legacy-bifrost-jobs.yaml @@ -0,0 +1,146 @@ +- job: + name: bifrost-integration-dhcp + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dhcp/run + post-run: playbooks/legacy/bifrost-integration-dhcp/post + timeout: 7200 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade + +- job: + name: bifrost-integration-dhcp-centos-7 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dhcp-centos-7/run + post-run: playbooks/legacy/bifrost-integration-dhcp-centos-7/post + timeout: 7200 + nodeset: legacy-centos-7 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade + +- job: + name: bifrost-integration-dhcp-opensuse-423 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run + post-run: playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post + timeout: 7200 + nodeset: legacy-opensuse-423 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade + +- job: + name: bifrost-integration-dibipa-debian + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dibipa-debian/run + post-run: playbooks/legacy/bifrost-integration-dibipa-debian/post + timeout: 7200 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade + +- job: + name: bifrost-integration-dibipa-debian-centos-7 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run + post-run: playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post + timeout: 7200 + nodeset: legacy-centos-7 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade + +- job: + name: bifrost-integration-dibipa-debian-opensuse-423 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run + post-run: playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post + timeout: 7200 + nodeset: legacy-opensuse-423 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade + +- job: + name: bifrost-integration-tinyipa + parent: legacy-base + run: playbooks/legacy/bifrost-integration-tinyipa/run + post-run: playbooks/legacy/bifrost-integration-tinyipa/post + timeout: 3600 + required-projects: + - openstack/bifrost + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade + +- job: + name: bifrost-integration-tinyipa-centos-7 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-tinyipa-centos-7/run + post-run: playbooks/legacy/bifrost-integration-tinyipa-centos-7/post + timeout: 3600 + nodeset: legacy-centos-7 + required-projects: + - openstack/bifrost + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade + +- job: + name: bifrost-integration-tinyipa-opensuse-423 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run + post-run: playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post + timeout: 3600 + nodeset: legacy-opensuse-423 + required-projects: + - openstack/bifrost + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/requirements + - openstack-infra/shade diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml new file mode 100644 index 000000000..697bb80b7 --- /dev/null +++ b/zuul.d/project.yaml @@ -0,0 +1,79 @@ +- project: + name: openstack/bifrost + + experimental: + jobs: + - bifrost-integration-tinyipa-opensuse-423: + branches: ^(?!stable/ocata).*$ + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + check: + jobs: + - bifrost-integration-tinyipa-centos-7: + voting: false + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-dibipa-debian-centos-7: + voting: false + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-tinyipa: + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-tinyipa-opensuse-423: + branches: ^(?!stable/ocata).*$ + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-dibipa-debian: + voting: false + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-dibipa-debian-opensuse-423: + voting: false + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-dhcp: + voting: false + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-dhcp-opensuse-423: + voting: false + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-dhcp-centos-7: + voting: false + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + gate: + jobs: + - bifrost-integration-tinyipa: + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$ + - bifrost-integration-tinyipa-opensuse-423: + branches: ^(?!stable/ocata).*$ + irrelevant-files: + - ^.*\.rst$ + - ^doc/.*$ + - ^releasenotes/.*$