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
This commit is contained in:
Antoine Musso 2021-05-27 17:16:31 +02:00
parent 1adee7f475
commit aa276402ff
5 changed files with 0 additions and 201 deletions

View File

@ -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

View File

@ -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 }}'

View File

@ -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 }}'

View File

@ -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 }}'

View File

@ -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