diff --git a/playbooks/ara-integration-py27-2.2.3.0-centos-7/post.yaml b/playbooks/ara-integration-py27-2.2.3.0-centos-7/post.yaml new file mode 100644 index 00000000..e07f5510 --- /dev/null +++ b/playbooks/ara-integration-py27-2.2.3.0-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/ara-integration-py27-2.2.3.0-centos-7/run.yaml b/playbooks/ara-integration-py27-2.2.3.0-centos-7/run.yaml new file mode 100644 index 00000000..c82e2973 --- /dev/null +++ b/playbooks/ara-integration-py27-2.2.3.0-centos-7/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py27-2.2.3.0-centos-7 from old job + gate-ara-integration-py27-2.2.3.0-centos-7 + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + 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 -e + set -x + ./run_tests.sh --python py27 --ansible 2.2.3.0 + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/ara-integration-py27-devel-centos-7/post.yaml b/playbooks/ara-integration-py27-devel-centos-7/post.yaml new file mode 100644 index 00000000..e07f5510 --- /dev/null +++ b/playbooks/ara-integration-py27-devel-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/ara-integration-py27-devel-centos-7/run.yaml b/playbooks/ara-integration-py27-devel-centos-7/run.yaml new file mode 100644 index 00000000..f7d8b5aa --- /dev/null +++ b/playbooks/ara-integration-py27-devel-centos-7/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py27-devel-centos-7 from old job + gate-ara-integration-py27-devel-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` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + 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 -e + set -x + ./run_tests.sh --python py27 --ansible devel + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/ara-integration-py27-latest-centos-7/post.yaml b/playbooks/ara-integration-py27-latest-centos-7/post.yaml new file mode 100644 index 00000000..e07f5510 --- /dev/null +++ b/playbooks/ara-integration-py27-latest-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/ara-integration-py27-latest-centos-7/run.yaml b/playbooks/ara-integration-py27-latest-centos-7/run.yaml new file mode 100644 index 00000000..337078d1 --- /dev/null +++ b/playbooks/ara-integration-py27-latest-centos-7/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py27-latest-centos-7 from old job + gate-ara-integration-py27-latest-centos-7 + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + 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 -e + set -x + ./run_tests.sh --python py27 --ansible latest + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/ara-integration-py35-devel-fedora-26/post.yaml b/playbooks/ara-integration-py35-devel-fedora-26/post.yaml new file mode 100644 index 00000000..e07f5510 --- /dev/null +++ b/playbooks/ara-integration-py35-devel-fedora-26/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/ara-integration-py35-devel-fedora-26/run.yaml b/playbooks/ara-integration-py35-devel-fedora-26/run.yaml new file mode 100644 index 00000000..2e7d2588 --- /dev/null +++ b/playbooks/ara-integration-py35-devel-fedora-26/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py35-devel-fedora-26 from old job + gate-ara-integration-py35-devel-fedora-26-nv + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + 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 -e + set -x + ./run_tests.sh --python py35 --ansible devel + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/ara-integration-py35-devel/post.yaml b/playbooks/ara-integration-py35-devel/post.yaml new file mode 100644 index 00000000..e07f5510 --- /dev/null +++ b/playbooks/ara-integration-py35-devel/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/ara-integration-py35-devel/run.yaml b/playbooks/ara-integration-py35-devel/run.yaml new file mode 100644 index 00000000..b6859cee --- /dev/null +++ b/playbooks/ara-integration-py35-devel/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py35-devel from old job gate-ara-integration-py35-devel-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` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + 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 -e + set -x + ./run_tests.sh --python py35 --ansible devel + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/ara-integration-py35-latest-fedora-26/post.yaml b/playbooks/ara-integration-py35-latest-fedora-26/post.yaml new file mode 100644 index 00000000..e07f5510 --- /dev/null +++ b/playbooks/ara-integration-py35-latest-fedora-26/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/ara-integration-py35-latest-fedora-26/run.yaml b/playbooks/ara-integration-py35-latest-fedora-26/run.yaml new file mode 100644 index 00000000..404b8e9c --- /dev/null +++ b/playbooks/ara-integration-py35-latest-fedora-26/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py35-latest-fedora-26 from old job + gate-ara-integration-py35-latest-fedora-26 + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + 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 -e + set -x + ./run_tests.sh --python py35 --ansible latest + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/ara-integration-py35-latest/post.yaml b/playbooks/ara-integration-py35-latest/post.yaml new file mode 100644 index 00000000..e07f5510 --- /dev/null +++ b/playbooks/ara-integration-py35-latest/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/ara-integration-py35-latest/run.yaml b/playbooks/ara-integration-py35-latest/run.yaml new file mode 100644 index 00000000..425451cf --- /dev/null +++ b/playbooks/ara-integration-py35-latest/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py35-latest from old job gate-ara-integration-py35-latest-ubuntu-xenial + tasks: + + - name: Ensure legacy workspace directory + file: + path: '{{ ansible_user_dir }}/workspace' + state: directory + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + 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 -e + set -x + ./run_tests.sh --python py35 --ansible latest + executable: /bin/bash + chdir: '{{ ansible_user_dir }}/workspace' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml new file mode 100644 index 00000000..6534c52b --- /dev/null +++ b/zuul.d/jobs.yaml @@ -0,0 +1,56 @@ +- job: + name: ara-integration-py27-2.2.3.0-centos-7 + parent: base + run: playbooks/ara-integration-py27-2.2.3.0-centos-7/run.yaml + post-run: playbooks/ara-integration-py27-2.2.3.0-centos-7/post.yaml + timeout: 1200 + nodeset: centos-7 + +- job: + name: ara-integration-py27-devel-centos-7 + parent: base + voting: false + run: playbooks/ara-integration-py27-devel-centos-7/run.yaml + post-run: playbooks/ara-integration-py27-devel-centos-7/post.yaml + timeout: 1200 + nodeset: centos-7 + +- job: + name: ara-integration-py27-latest-centos-7 + parent: base + run: playbooks/ara-integration-py27-latest-centos-7/run.yaml + post-run: playbooks/ara-integration-py27-latest-centos-7/post.yaml + timeout: 1200 + nodeset: centos-7 + +- job: + name: ara-integration-py35-devel + parent: base + voting: false + run: playbooks/ara-integration-py35-devel/run.yaml + post-run: playbooks/ara-integration-py35-devel/post.yaml + timeout: 1200 + +- job: + name: ara-integration-py35-devel-fedora-26 + parent: base + voting: false + run: playbooks/ara-integration-py35-devel-fedora-26/run.yaml + post-run: playbooks/ara-integration-py35-devel-fedora-26/post.yaml + timeout: 1200 + nodeset: fedora-26 + +- job: + name: ara-integration-py35-latest + parent: base + run: playbooks/ara-integration-py35-latest/run.yaml + post-run: playbooks/ara-integration-py35-latest/post.yaml + timeout: 1200 + +- job: + name: ara-integration-py35-latest-fedora-26 + parent: base + run: playbooks/ara-integration-py35-latest-fedora-26/run.yaml + post-run: playbooks/ara-integration-py35-latest-fedora-26/post.yaml + timeout: 1200 + nodeset: fedora-26 diff --git a/zuul.d/layout.yaml b/zuul.d/layout.yaml new file mode 100644 index 00000000..7a4a7886 --- /dev/null +++ b/zuul.d/layout.yaml @@ -0,0 +1,17 @@ +- project: + name: openstack/ara + check: + jobs: + - ara-integration-py27-2.2.3.0-centos-7 + - ara-integration-py27-latest-centos-7 + - ara-integration-py27-devel-centos-7 + - ara-integration-py35-latest + - ara-integration-py35-devel + - ara-integration-py35-latest-fedora-26 + - ara-integration-py35-devel-fedora-26 + gate: + jobs: + - ara-integration-py27-2.2.3.0-centos-7 + - ara-integration-py27-latest-centos-7 + - ara-integration-py35-latest + - ara-integration-py35-latest-fedora-26