From ae8b25e8089332cd276d3a6f14a475fe89c7045a Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 26 Sep 2024 17:32:00 +0100 Subject: [PATCH] Remove legacy-sandbox-tag job Depends-on: https://review.opendev.org/c/openstack/project-config/+/930319 Change-Id: Id8fc0298233fe5223b4f95c0694cf7e7ac8d80f3 Signed-off-by: Stephen Finucane --- playbooks/legacy/sandbox-tag/run.yaml | 50 --------------------------- zuul.d/zuul-legacy-jobs.yaml | 6 ---- 2 files changed, 56 deletions(-) delete mode 100644 playbooks/legacy/sandbox-tag/run.yaml diff --git a/playbooks/legacy/sandbox-tag/run.yaml b/playbooks/legacy/sandbox-tag/run.yaml deleted file mode 100644 index 25f729b1..00000000 --- a/playbooks/legacy/sandbox-tag/run.yaml +++ /dev/null @@ -1,50 +0,0 @@ -- hosts: all - name: Autoconverted job legacy-sandbox-tag from old job sandbox-tag - 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 }}' diff --git a/zuul.d/zuul-legacy-jobs.yaml b/zuul.d/zuul-legacy-jobs.yaml index a2848480..5d94caf3 100644 --- a/zuul.d/zuul-legacy-jobs.yaml +++ b/zuul.d/zuul-legacy-jobs.yaml @@ -60,12 +60,6 @@ run: playbooks/legacy/monasca-thresh-maven-build/run.yaml timeout: 1800 -- job: - name: legacy-sandbox-tag - parent: legacy-base - run: playbooks/legacy/sandbox-tag/run.yaml - timeout: 1800 - - job: name: legacy-tempest-dsvm-monasca-transform-python35-functional parent: legacy-dsvm-base