From aa276402ffa1cacc99424054f6c290bb4760fa79 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 27 May 2021 17:16:31 +0200 Subject: [PATCH] Retire gearman-plugin jobs Remove jobs and playbooks for x/gearman-plugin which is being retired: - legacy-gearman-plugin-maven-build - legacy-gearman-plugin-hpi-artifact - legacy-gearman-plugin-jenkinsci-upload Depends-On: Ib6010d7ce85a934501c50a53e9ac78dcf74bc403 Change-Id: I5e35464c6b63f97770835d2adb927cb08c40e952 --- .../gearman-plugin-hpi-artifact/post.yaml | 21 ------- .../gearman-plugin-hpi-artifact/run.yaml | 62 ------------------- .../gearman-plugin-jenkinsci-upload/run.yaml | 37 ----------- .../gearman-plugin-maven-build/run.yaml | 62 ------------------- zuul.d/zuul-legacy-jobs.yaml | 19 ------ 5 files changed, 201 deletions(-) delete mode 100644 playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml delete mode 100644 playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml delete mode 100644 playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml delete mode 100644 playbooks/legacy/gearman-plugin-maven-build/run.yaml diff --git a/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml b/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml deleted file mode 100644 index 8cee60b9..00000000 --- a/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml +++ /dev/null @@ -1,21 +0,0 @@ -- hosts: primary - tasks: - - - name: Ensure artifacts directory exists - file: - path: '{{ zuul.executor.work_root }}/artifacts' - state: directory - delegate_to: localhost - - - name: Copy files from {{ ansible_user_dir }}/workspace/ on node - synchronize: - src: '{{ ansible_user_dir }}/workspace/' - dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' - mode: pull - copy_links: true - verify_host: true - rsync_opts: - - --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.hpi - - --include=*/ - - --exclude=* - - --prune-empty-dirs diff --git a/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml b/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml deleted file mode 100644 index c0a49dec..00000000 --- a/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-gearman-plugin-hpi-artifact from old job gearman-plugin-hpi-artifact - roles: - - bindep - - 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 \ - https://opendev.org $ZUUL_PROJECT - 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 -e - set -x - /usr/local/jenkins/slave_scripts/version-properties.sh - source version.properties - mvn clean package -B -Dproject-version=$PROJECT_VER - cp ./target/$ZUUL_SHORT_PROJECT_NAME.hpi ./target/$ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.hpi - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml b/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml deleted file mode 100644 index cb024da9..00000000 --- a/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml +++ /dev/null @@ -1,37 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-gearman-plugin-jenkinsci-upload from old job gearman-plugin-jenkinsci-upload - tasks: - - - name: Ensure legacy workspace directory - file: - path: '{{ ansible_user_dir }}/workspace' - state: directory - - - 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 -e - set -x - TAG=`echo $ZUUL_REF | sed 's/^refs.tags.//'` - FILENAME_HPI="$ZUUL_SHORT_PROJECT_NAME-$TAG.hpi" - - # copy plugin artifacts from tarballs to local workspace - rm -rf *.hpi - curl -o $FILENAME_HPI http://tarballs.openstack.org/ci/$ZUUL_SHORT_PROJECT_NAME/$FILENAME_HPI - - # deploy to maven repository - FILENAME_POM="$ZUUL_SHORT_PROJECT_NAME-$TAG.pom" - /usr/local/jenkins/slave_scripts/jenkinsci-upload.sh $ZUUL_SHORT_PROJECT_NAME $TAG \ - $FILENAME_POM $FILENAME_HPI - executable: /bin/bash - chdir: '{{ ansible_user_dir }}/workspace' - environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gearman-plugin-maven-build/run.yaml b/playbooks/legacy/gearman-plugin-maven-build/run.yaml deleted file mode 100644 index 33d6b0ed..00000000 --- a/playbooks/legacy/gearman-plugin-maven-build/run.yaml +++ /dev/null @@ -1,62 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-gearman-plugin-maven-build-ubuntu-trusty from old - job gate-gearman-plugin-maven-build-ubuntu-trusty - roles: - - bindep - - 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 \ - https://opendev.org $ZUUL_PROJECT - 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 -e - set -x - /usr/local/jenkins/slave_scripts/version-properties.sh - source version.properties - mvn clean package -B -Dproject-version=$PROJECT_VER - 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 7085235a..c9aa0747 100644 --- a/zuul.d/zuul-legacy-jobs.yaml +++ b/zuul.d/zuul-legacy-jobs.yaml @@ -14,25 +14,6 @@ - openstack/python-barbicanclient - openstack/tempest -- job: - name: legacy-gearman-plugin-hpi-artifact - parent: legacy-publish-openstack-artifacts - run: playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml - post-run: playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml - timeout: 1800 - -- job: - name: legacy-gearman-plugin-jenkinsci-upload - parent: legacy-base - run: playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml - timeout: 1800 - -- job: - name: legacy-gearman-plugin-maven-build - parent: legacy-base - run: playbooks/legacy/gearman-plugin-maven-build/run.yaml - timeout: 1800 - - job: name: legacy-grenade-dsvm-cinder-mn-sub-bak parent: legacy-dsvm-base-multinode