Remove package-afs-centos jobs
These have been replaced with gate build jobs Change-Id: I400a638a8c42f14e5232f8c9748dc571dfaa830e Depends-On: https://review.opendev.org/733049
This commit is contained in:
parent
04ebe52b9b
commit
9c98497b76
@ -1,28 +0,0 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
# Note we always create the artifacts dir so that the openstack artifacts
|
||||
# publishing playbook is happy.
|
||||
- name: Ensure artifacts directory exists
|
||||
file:
|
||||
state: directory
|
||||
path: '{{ zuul.executor.work_root }}/artifacts/package-afs-centos7'
|
||||
delegate_to: localhost
|
||||
|
||||
# We only build an RPM if one doesn't exist for the desired version.
|
||||
- name: Check for built RPMs
|
||||
stat:
|
||||
path: '{{ ansible_user_dir }}/rpmbuild/RPMS/x86_64'
|
||||
get_checksum: false
|
||||
get_mime: false
|
||||
get_md5: false
|
||||
register: rpms_exist
|
||||
|
||||
- name: Copy RPMs back for publication
|
||||
when: rpms_exist.stat.exists
|
||||
synchronize:
|
||||
src: '{{ ansible_user_dir }}/rpmbuild/RPMS/x86_64/'
|
||||
dest: '{{ zuul.executor.work_root }}/artifacts/package-afs-centos7'
|
||||
mode: pull
|
||||
delete: true
|
||||
recursive: true
|
@ -1,44 +0,0 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
- name: Build Centos packages of OpenAFS
|
||||
shell: |
|
||||
set -eux
|
||||
|
||||
# TODO: fedora
|
||||
YUM=${YUM:-yum}
|
||||
|
||||
VERSION=1.6.22.3
|
||||
SRC_VERSION=${VERSION}-1
|
||||
SRC_RPM=openafs-${SRC_VERSION}.src.rpm
|
||||
SRC_URL=https://www.openafs.org/dl/openafs/${VERSION}/${SRC_RPM}
|
||||
|
||||
UPSTREAM_BASE=https://tarballs.openstack.org/project-config/package-afs-centos7
|
||||
UPSTREAM_CHECK=${UPSTREAM_BASE}/openafs-client-${SRC_VERSION}.el7.x86_64.rpm
|
||||
if wget -O/dev/null -q $UPSTREAM_CHECK; then
|
||||
echo "Found existing upstream RPM build, nothing to do"
|
||||
# scp should just publish nothing
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# some common prereqs
|
||||
sudo yum -y groupinstall "Development Tools" "Development Libraries"
|
||||
sudo yum -y install rpm-build kernel-devel createrepo
|
||||
|
||||
wget $SRC_URL
|
||||
# install the build dependencies for the package
|
||||
sudo yum-builddep -y ./${SRC_RPM}
|
||||
|
||||
# install source-rpm
|
||||
# (this installs to ~/rpmbuild)
|
||||
rpm -i ./${SRC_RPM}
|
||||
|
||||
# build everything
|
||||
pushd ~/rpmbuild/SPECS/
|
||||
rpmbuild -ba ./openafs.spec
|
||||
popd
|
||||
|
||||
# create final repo for copying
|
||||
createrepo ~/rpmbuild/RPMS/x86_64
|
||||
args:
|
||||
executable: /bin/bash
|
@ -1,28 +0,0 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
# Note we always create the artifacts dir so that the openstack artifacts
|
||||
# publishing playbook is happy.
|
||||
- name: Ensure artifacts directory exists
|
||||
file:
|
||||
state: directory
|
||||
path: '{{ zuul.executor.work_root }}/artifacts/package-afs-centos8'
|
||||
delegate_to: localhost
|
||||
|
||||
# We only build an RPM if one doesn't exist for the desired version.
|
||||
- name: Check for built RPMs
|
||||
stat:
|
||||
path: '{{ ansible_user_dir }}/rpmbuild/RPMS/x86_64'
|
||||
get_checksum: false
|
||||
get_mime: false
|
||||
get_md5: false
|
||||
register: rpms_exist
|
||||
|
||||
- name: Copy RPMs back for publication
|
||||
when: rpms_exist.stat.exists
|
||||
synchronize:
|
||||
src: '{{ ansible_user_dir }}/rpmbuild/RPMS/x86_64/'
|
||||
dest: '{{ zuul.executor.work_root }}/artifacts/package-afs-centos8'
|
||||
mode: pull
|
||||
delete: true
|
||||
recursive: true
|
@ -1,46 +0,0 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
|
||||
- name: Build CentOS 8 packages of OpenAFS
|
||||
shell: |
|
||||
set -eux
|
||||
|
||||
VERSION=1.8.4
|
||||
SRC_VERSION=${VERSION}-1
|
||||
SRC_RPM=openafs-${SRC_VERSION}.src.rpm
|
||||
SRC_URL=https://www.openafs.org/dl/openafs/${VERSION}/${SRC_RPM}
|
||||
|
||||
UPSTREAM_BASE=https://tarballs.openstack.org/project-config/package-afs-centos8
|
||||
UPSTREAM_CHECK=${UPSTREAM_BASE}/openafs-client-${SRC_VERSION}.el8.x86_64.rpm
|
||||
if wget -O/dev/null -q $UPSTREAM_CHECK; then
|
||||
echo "Found existing upstream RPM build, nothing to do"
|
||||
# scp should just publish nothing
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# some common prereqs
|
||||
sudo dnf -y group install "Development Tools"
|
||||
sudo dnf -y install rpm-build kernel-devel createrepo
|
||||
|
||||
wget $SRC_URL
|
||||
# install the build dependencies for the package
|
||||
sudo dnf builddep -y ./${SRC_RPM}
|
||||
|
||||
# for whatever reason (I think because it is in a macro
|
||||
# check in the .spec) the above builddep misses this
|
||||
# dependency
|
||||
sudo dnf install -y elfutils-devel
|
||||
|
||||
# install source-rpm
|
||||
# (this installs to ~/rpmbuild)
|
||||
rpm -i ./${SRC_RPM}
|
||||
|
||||
# build everything
|
||||
pushd ~/rpmbuild/SPECS/
|
||||
rpmbuild -ba ./openafs.spec
|
||||
popd
|
||||
|
||||
# create final repo for copying
|
||||
createrepo ~/rpmbuild/RPMS/x86_64
|
||||
args:
|
||||
executable: /bin/bash
|
@ -1054,30 +1054,6 @@
|
||||
parent: publish-openstack-artifacts
|
||||
run: playbooks/openafs-rpm-package-build/publish.yaml
|
||||
|
||||
- job:
|
||||
name: project-config-build-openafs-centos
|
||||
description: |
|
||||
There are no official builds for AFS on Centos 7, hence
|
||||
we build our own and publish them to tarballs.openstack.org
|
||||
for our centos hosts that need access to the mirror to
|
||||
consume.
|
||||
parent: publish-openstack-artifacts
|
||||
run: playbooks/package-afs-centos/centos7/run.yaml
|
||||
post-run: playbooks/package-afs-centos/centos7/post.yaml
|
||||
nodeset: centos-7
|
||||
|
||||
- job:
|
||||
name: project-config-build-openafs-centos8
|
||||
description: |
|
||||
There are no official builds for AFS on CentOS 8, hence
|
||||
we build our own and publish them to tarballs.openstack.org
|
||||
for our centos hosts that need access to the mirror to
|
||||
consume.
|
||||
parent: publish-openstack-artifacts
|
||||
run: playbooks/package-afs-centos/centos8/run.yaml
|
||||
post-run: playbooks/package-afs-centos/centos8/post.yaml
|
||||
nodeset: centos-8
|
||||
|
||||
- job:
|
||||
name: openstack-zuul-jobs-linters
|
||||
parent: tox
|
||||
|
Loading…
x
Reference in New Issue
Block a user