diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2020-12-04 13:23:18 +0100 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2020-12-07 12:32:40 +0000 |
commit | c029f2bc87bf81e869bbb33d68dbb3a62ba53898 (patch) | |
tree | 27c2c63ffa5bcedda26488fcfa8dac2ea0d2e2cc | |
parent | 58c29175ed7bda9a4278997ab1fe0a31c944f7a4 (diff) |
ldcg-loci: remove job
Change-Id: I684bdb6df7b983e5a21da56748c200e3e9e55d37
-rw-r--r-- | ldcg-loci.yaml | 42 | ||||
-rw-r--r-- | ldcg-loci/Dockerfile | 22 | ||||
-rw-r--r-- | ldcg-loci/build.sh | 66 | ||||
-rw-r--r-- | ldcg-loci/erp18.06.list | 1 |
4 files changed, 0 insertions, 131 deletions
diff --git a/ldcg-loci.yaml b/ldcg-loci.yaml deleted file mode 100644 index b369a612..00000000 --- a/ldcg-loci.yaml +++ /dev/null @@ -1,42 +0,0 @@ -- job: - name: ldcg-loci - project-type: freestyle - defaults: global - properties: - - authorization: - anonymous: - - job-discover - linaro: - - job-read - - job-extended-read - - job-build - - job-cancel - - build-discarder: - days-to-keep: 30 - num-to-keep: 30 - parameters: - - string: - name: EXTRA_PATCHES - default: 'refs/changes/27/583727/7 refs/changes/26/583726/4' - description: "space separated list of pull entries" - disabled: true - node: leg-aarch64 - concurrent: false - display-name: 'LDCG Loci images build' - wrappers: - - timestamps - - copy-to-slave: - includes: - - config.json - relative-to: 'somewhereElse' - - credentials-binding: - - text: - credential-id: DOCKER_AUTH - variable: DOCKER_AUTH - builders: - - shell: - !include-raw: ldcg-loci/build.sh - - linaro-publish-token - publishers: - - email: - recipients: 'marcin.juszkiewicz@linaro.org riku.voipio@linaro.org fathi.boudra@linaro.org sdi-team@linaro.org' diff --git a/ldcg-loci/Dockerfile b/ldcg-loci/Dockerfile deleted file mode 100644 index 5232854f..00000000 --- a/ldcg-loci/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -FROM debian:stretch-backports - -COPY erp18.06.list /tmp/ - -RUN apt update \ - && echo "Package: *" >> /etc/apt/preferences.d/89_stretch-backports_default \ - && echo "Pin: release n=stretch-backports" >> /etc/apt/preferences.d/89_stretch-backports_default \ - && echo "Pin-Priority: 500" >> /etc/apt/preferences.d/89_stretch-backports_default \ - && apt upgrade -y \ - && apt dist-upgrade -y --no-install-recommends \ - && apt install -y --no-install-recommends curl gnupg \ - && curl http://obs.linaro.org/ERP:/18.06/Debian_9/Release.key | apt-key add - \ - && mv /tmp/erp18.06.list /etc/apt/sources.list.d/ \ - && apt update \ - && apt install -y --no-install-recommends \ - git \ - ca-certificates \ - netbase \ - lsb-release \ - patch \ - python virtualenv \ - sudo diff --git a/ldcg-loci/build.sh b/ldcg-loci/build.sh deleted file mode 100644 index c35cb8b4..00000000 --- a/ldcg-loci/build.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash - -set -ex - -trap cleanup_exit INT TERM EXIT - -cleanup_exit() -{ - rm -rf ${HOME}/.docker -} - -mkdir -p ${HOME}/.docker -sed -e "s|\${DOCKER_AUTH}|${DOCKER_AUTH}|" < ${WORKSPACE}/config.json > ${HOME}/.docker/config.json -chmod 0600 ${HOME}/.docker/config.json - -rm -rf ${WORKSPACE}/* - -# --------------------------------------------------------------------------------------------------------- - -HUB_USERNAME=linaro -IMG_TAG=build-${BUILD_NUMBER} -BASE_IMG=${HUB_USERNAME}/loci-base:${IMG_TAG} - -# build base image first -# it has ERP:18.06 repo enabled -# and all packages common in loci images gets preinstalled -# -for jobfile in Dockerfile erp18.06.list -do - wget -q http://git.linaro.org/ci/job/configs.git/plain/ldcg-loci/${jobfile} -O ${WORKSPACE}/${jobfile} -done - -docker build . --tag ${BASE_IMG} -docker push ${BASE_IMG} - -git clone --depth 1 https://git.openstack.org/openstack/loci - -cd loci/ - -# Apply extra patches to the source code that haven't been merged yet - -if [[ ! -z ${EXTRA_PATCHES} ]]; then - echo ${EXTRA_PATCHES} | sed -n 1'p' | tr ' ' '\n' | while read patch; do - - git pull https://git.openstack.org/openstack/loci ${patch} - done -fi - -# requirements needs to be built first -for project in requirements cinder glance heat horizon ironic keystone neutron nova octavia -do - IMG_NAME=${HUB_USERNAME}/loci-${project}:${IMG_TAG} - - if [ ${project} != 'requirements' ];then - WHEELS_OPTS="--build-arg WHEELS=${HUB_USERNAME}/loci-requirements:${IMG_TAG}" - fi - - docker build . \ - --build-arg PROJECT=${project} \ - --build-arg FROM=${BASE_IMG} \ - --build-arg PROFILES='lvm ceph' \ - ${WHEELS_OPTS} \ - --tag ${IMG_NAME} - - docker push ${IMG_NAME} -done diff --git a/ldcg-loci/erp18.06.list b/ldcg-loci/erp18.06.list deleted file mode 100644 index 7a3be284..00000000 --- a/ldcg-loci/erp18.06.list +++ /dev/null @@ -1 +0,0 @@ -deb http://obs.linaro.org/ERP:/18.06/Debian_9 ./ |