From ec7a43e4842d16e06cfb9375448dd8785a6404dd Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 9 Oct 2017 22:20:15 +0200 Subject: [PATCH] Remove legacy announce-release jobs These jobs are not needed anymore, remove them. We use now the new announce-release job. Change-Id: I4dbb03687b5d828b7fd9f465a37108c29a3daef8 Depends-On: I56e2eba6dac484057f985c252b158802f5642c18 --- playbooks/legacy/announce-release/post.yaml | 67 ------ playbooks/legacy/announce-release/run.yaml | 106 --------- .../post.yaml | 67 ------ .../run.yaml | 106 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- .../post.yaml | 67 ------ .../run.yaml | 107 --------- zuul.d/zuul-legacy-jobs.yaml | 224 ------------------ zuul.d/zuul-legacy-project-templates.yaml | 8 +- 66 files changed, 4 insertions(+), 5794 deletions(-) delete mode 100644 playbooks/legacy/announce-release/post.yaml delete mode 100644 playbooks/legacy/announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml delete mode 100644 playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml delete mode 100644 playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml diff --git a/playbooks/legacy/announce-release/post.yaml b/playbooks/legacy/announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/announce-release/run.yaml b/playbooks/legacy/announce-release/run.yaml deleted file mode 100644 index f186435a..00000000 --- a/playbooks/legacy/announce-release/run.yaml +++ /dev/null @@ -1,106 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-announce-release from old job {name}-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-announce-release/run.yaml deleted file mode 100644 index 0f38ba60..00000000 --- a/playbooks/legacy/openstack-ansible-announce-release/run.yaml +++ /dev/null @@ -1,106 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-announce-release from old job openstack-ansible-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml deleted file mode 100644 index ced918a4..00000000 --- a/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-galera_server-announce-release - from old job openstack-ansible-galera_server-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml deleted file mode 100644 index e4b17864..00000000 --- a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-haproxy_server-announce-release - from old job openstack-ansible-haproxy_server-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml deleted file mode 100644 index e482765c..00000000 --- a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-memcached_server-announce-release - from old job openstack-ansible-memcached_server-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml deleted file mode 100644 index 8719c370..00000000 --- a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_almanach-announce-release from - old job openstack-ansible-os_almanach-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml deleted file mode 100644 index 63db35f8..00000000 --- a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_aodh-announce-release from old - job openstack-ansible-os_aodh-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml deleted file mode 100644 index 337139da..00000000 --- a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_barbican-announce-release from - old job openstack-ansible-os_barbican-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml deleted file mode 100644 index a7e4b3a1..00000000 --- a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_ceilometer-announce-release - from old job openstack-ansible-os_ceilometer-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml deleted file mode 100644 index 67be3612..00000000 --- a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_cinder-announce-release from - old job openstack-ansible-os_cinder-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml deleted file mode 100644 index 25756403..00000000 --- a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_cloudkitty-announce-release - from old job openstack-ansible-os_cloudkitty-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml deleted file mode 100644 index 4c818c65..00000000 --- a/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_designate-announce-release from - old job openstack-ansible-os_designate-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml deleted file mode 100644 index 2d616e6a..00000000 --- a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_freezer-announce-release from - old job openstack-ansible-os_freezer-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml deleted file mode 100644 index 7cba61be..00000000 --- a/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_glance-announce-release from - old job openstack-ansible-os_glance-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml deleted file mode 100644 index 43242fa3..00000000 --- a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_gnocchi-announce-release from - old job openstack-ansible-os_gnocchi-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml deleted file mode 100644 index 1efc8b14..00000000 --- a/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_heat-announce-release from old - job openstack-ansible-os_heat-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml deleted file mode 100644 index 5db1c0f5..00000000 --- a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_horizon-announce-release from - old job openstack-ansible-os_horizon-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml deleted file mode 100644 index 6e701ab4..00000000 --- a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_ironic-announce-release from - old job openstack-ansible-os_ironic-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml deleted file mode 100644 index 21833316..00000000 --- a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_keystone-announce-release from - old job openstack-ansible-os_keystone-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml deleted file mode 100644 index c62b8161..00000000 --- a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_magnum-announce-release from - old job openstack-ansible-os_magnum-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml deleted file mode 100644 index 25f2f0ef..00000000 --- a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_monasca-announce-release from - old job openstack-ansible-os_monasca-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml deleted file mode 100644 index 431d720d..00000000 --- a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_neutron-announce-release from - old job openstack-ansible-os_neutron-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml deleted file mode 100644 index d2f3bf15..00000000 --- a/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_nova-announce-release from old - job openstack-ansible-os_nova-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml deleted file mode 100644 index df3dc323..00000000 --- a/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_rally-announce-release from - old job openstack-ansible-os_rally-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml deleted file mode 100644 index 5708089e..00000000 --- a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_sahara-announce-release from - old job openstack-ansible-os_sahara-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml deleted file mode 100644 index 873222de..00000000 --- a/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_swift-announce-release from - old job openstack-ansible-os_swift-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml deleted file mode 100644 index 6ee17b7b..00000000 --- a/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_trove-announce-release from - old job openstack-ansible-os_trove-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml deleted file mode 100644 index 1c03518f..00000000 --- a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_watcher-announce-release from - old job openstack-ansible-os_watcher-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml deleted file mode 100644 index d0fc92b1..00000000 --- a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-os_zaqar-announce-release from - old job openstack-ansible-os_zaqar-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml deleted file mode 100644 index 6dab32d4..00000000 --- a/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-plugins-announce-release from old - job openstack-ansible-plugins-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml deleted file mode 100644 index f8d8eeee..00000000 --- a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-rabbitmq_server-announce-release - from old job openstack-ansible-rabbitmq_server-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml deleted file mode 100644 index 68fbdf81..00000000 --- a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml +++ /dev/null @@ -1,67 +0,0 @@ -- 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=**/*nose_results.html - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testr_results.html.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=/.testrepository/tmp* - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - 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=**/*testrepository.subunit.gz - - --include=*/ - - --exclude=* - - --prune-empty-dirs - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.log_root }}/tox' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/.tox/*/log/* - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml deleted file mode 100644 index 9335bc12..00000000 --- a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml +++ /dev/null @@ -1,107 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-openstack-ansible-rsyslog_server-announce-release - from old job openstack-ansible-rsyslog_server-announce-release - 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 -x - - TOOLS_TMP=$HOME/release-tools - mkdir -p $TOOLS_TMP - - # Report on the ZUUL settings. - env | grep '^ZUUL_' - - # Check out the release-tools, ignoring any other ZUUL - # variables that might confuse the cloner and cause it to - # try to check out anything like the commit that was just - # tagged or to look for a branch (we always want the master - # version of the tools). - for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do - unset $v - done - - /usr/zuul-env/bin/zuul-cloner \ - --cache-dir /opt/git \ - --workspace $TOOLS_TMP \ - git://git.openstack.org \ - openstack-infra/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Install the distro packages needed by the release - # tools. These will not necessarily be included in the set - # installed by the builder step above, so we have to do it - # explicitly by changing to the tools directory and then - # running the same script. - (cd $TOOLS_DIR && - /usr/local/jenkins/slave_scripts/install-distro-packages.sh) - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - sudo rm -f /etc/sudoers.d/zuul - # Prove that general sudo access is actually revoked - ! sudo -n true - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' - - - shell: - cmd: | - set -x - - TOOLS_TMP=$HOME/release-tools - TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools - - # Save the version that was just tagged by parsing - # ref/tags/VALUE to get VALUE. - VERSION=$(echo $ZUUL_REF | cut -f3 -d/) - - # Run the announce script. - $TOOLS_DIR/announce.sh $WORKSPACE $VERSION - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/zuul.d/zuul-legacy-jobs.yaml b/zuul.d/zuul-legacy-jobs.yaml index ed834e6b..52d0e6d0 100644 --- a/zuul.d/zuul-legacy-jobs.yaml +++ b/zuul.d/zuul-legacy-jobs.yaml @@ -1,10 +1,3 @@ -- job: - name: legacy-announce-release - parent: legacy-base - run: playbooks/legacy/announce-release/run - post-run: playbooks/legacy/announce-release/post - timeout: 1800 - - job: name: legacy-ansible-func parent: legacy-base @@ -6108,20 +6101,6 @@ required-projects: - openstack/requirements -- job: - name: legacy-openstack-ansible-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-announce-release/run - post-run: playbooks/legacy/openstack-ansible-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-galera_server-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-galera_server-announce-release/run - post-run: playbooks/legacy/openstack-ansible-galera_server-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-galera_server-ansible-ssl parent: legacy-base @@ -6168,20 +6147,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-galera_server -- job: - name: legacy-openstack-ansible-haproxy_server-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run - post-run: playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-memcached_server-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-memcached_server-announce-release/run - post-run: playbooks/legacy/openstack-ansible-memcached_server-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-openstack-ansible-aio parent: legacy-base @@ -6243,27 +6208,6 @@ post-run: playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post timeout: 7200 -- job: - name: legacy-openstack-ansible-os_almanach-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_almanach-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_almanach-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-os_aodh-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_aodh-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_aodh-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-os_barbican-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_barbican-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_barbican-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_barbican-ansible-func-centos-7 parent: legacy-base @@ -6290,13 +6234,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_barbican -- job: - name: legacy-openstack-ansible-os_ceilometer-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_ceilometer-ansible-gnocchi parent: legacy-base @@ -6335,13 +6272,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_ceilometer -- job: - name: legacy-openstack-ansible-os_cinder-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_cinder-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_cinder-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_cinder-ansible-upgrade parent: legacy-base @@ -6354,13 +6284,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_cinder -- job: - name: legacy-openstack-ansible-os_cloudkitty-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_cloudkitty-ansible-func-centos-7 parent: legacy-base @@ -6387,27 +6310,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_cloudkitty -- job: - name: legacy-openstack-ansible-os_designate-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_designate-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_designate-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-os_freezer-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_freezer-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_freezer-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-os_glance-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_glance-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_glance-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_glance-ansible-upgrade parent: legacy-base @@ -6433,34 +6335,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_glance -- job: - name: legacy-openstack-ansible-os_gnocchi-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-os_heat-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_heat-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_heat-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-os_horizon-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_horizon-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_horizon-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-os_ironic-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_ironic-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_ironic-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_ironic-ansible-func-centos-7 parent: legacy-base @@ -6487,13 +6361,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_ironic -- job: - name: legacy-openstack-ansible-os_keystone-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_keystone-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_keystone-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_keystone-ansible-upgrade parent: legacy-base @@ -6595,13 +6462,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_keystone -- job: - name: legacy-openstack-ansible-os_magnum-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_magnum-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_magnum-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_magnum-ansible-func-centos-7 parent: legacy-base @@ -6628,13 +6488,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_magnum -- job: - name: legacy-openstack-ansible-os_monasca-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_monasca-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_monasca-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_monasca-ansible-func-centos-7 parent: legacy-base @@ -6659,13 +6512,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_monasca -- job: - name: legacy-openstack-ansible-os_neutron-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_neutron-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_neutron-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_neutron-ansible-calico parent: legacy-base @@ -6728,13 +6574,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_neutron -- job: - name: legacy-openstack-ansible-os_nova-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_nova-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_nova-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_nova-ansible-func_lxd parent: legacy-base @@ -6772,13 +6611,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-os_nova -- job: - name: legacy-openstack-ansible-os_rally-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_rally-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_rally-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_rally-ansible-func-centos-7 parent: legacy-base @@ -6805,13 +6637,6 @@ - openstack/openstack-ansible-os_rally - openstack/rally -- job: - name: legacy-openstack-ansible-os_sahara-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_sahara-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_sahara-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_sahara-ansible-func-centos-7 parent: legacy-base @@ -6840,13 +6665,6 @@ - openstack/openstack-ansible-os_sahara - openstack/sahara -- job: - name: legacy-openstack-ansible-os_swift-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_swift-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_swift-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_swift-ansible-func_pypy parent: legacy-base @@ -6935,13 +6753,6 @@ - openstack/openstack-ansible-os_swift - openstack/swift -- job: - name: legacy-openstack-ansible-os_trove-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_trove-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_trove-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_trove-ansible-func-centos-7 parent: legacy-base @@ -6968,13 +6779,6 @@ - openstack/openstack-ansible-os_trove - openstack/trove -- job: - name: legacy-openstack-ansible-os_watcher-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_watcher-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_watcher-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_watcher-ansible-func-centos-7 parent: legacy-base @@ -7001,13 +6805,6 @@ - openstack/openstack-ansible-os_watcher - openstack/watcher -- job: - name: legacy-openstack-ansible-os_zaqar-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run - post-run: playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-os_zaqar-ansible-func-centos-7 parent: legacy-base @@ -7046,13 +6843,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-pip_lock_down -- job: - name: legacy-openstack-ansible-plugins-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-plugins-announce-release/run - post-run: playbooks/legacy/openstack-ansible-plugins-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-ansible-plugins-ansible-func_py3 parent: legacy-base @@ -7076,20 +6866,6 @@ - openstack/openstack-ansible - openstack/openstack-ansible-plugins -- job: - name: legacy-openstack-ansible-rabbitmq_server-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run - post-run: playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post - timeout: 1800 - -- job: - name: legacy-openstack-ansible-rsyslog_server-announce-release - parent: legacy-base - run: playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run - post-run: playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post - timeout: 1800 - - job: name: legacy-openstack-api-ref parent: legacy-base diff --git a/zuul.d/zuul-legacy-project-templates.yaml b/zuul.d/zuul-legacy-project-templates.yaml index 908c6f2e..e9f285f2 100644 --- a/zuul.d/zuul-legacy-project-templates.yaml +++ b/zuul.d/zuul-legacy-project-templates.yaml @@ -983,7 +983,7 @@ - publish-openstack-python-tarball: dependencies: - publish-openstack-python-tarball - - legacy-announce-release: + - announce-release: dependencies: - legacy-npm-upload - legacy-npm-upload: @@ -1014,7 +1014,7 @@ - publish-openstack-python-tarball: dependencies: - publish-openstack-python-tarball - - legacy-announce-release: + - announce-release: dependencies: - legacy-npm-upload - legacy-npm-upload: @@ -1225,7 +1225,7 @@ - publish-openstack-python-tarball: dependencies: - publish-openstack-python-tarball - - legacy-announce-release: + - announce-release: dependencies: - publish-openstack-python-tarball - publish-openstack-python-tarball @@ -1234,7 +1234,7 @@ - publish-openstack-python-tarball: dependencies: - publish-openstack-python-tarball - - legacy-announce-release: + - announce-release: dependencies: - publish-openstack-python-tarball - publish-openstack-python-tarball