]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-iscsi: add centos8 distro for dev builds 1457/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 17 Dec 2019 20:32:21 +0000 (15:32 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 17 Dec 2019 20:32:21 +0000 (15:32 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
ceph-iscsi/build/build_rpm
ceph-iscsi/config/definitions/ceph-iscsi.yml

index 6f80dc5d3ef9437ef125bcce1a808ba20c3bb461..7cac80385c6ea4188bfdb26ce069c7695ef6198e 100644 (file)
@@ -52,7 +52,7 @@ SRPM=$(readlink -f $WORKSPACE/dist/SRPMS/*.src.rpm)
 ## Build the binaries with mock
 echo "Building RPMs"
 sudo mock --verbose -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --scrub=all
-sudo mock --verbose -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --define "dist .el7" --resultdir=$WORKSPACE/dist/RPMS/ ${SRPM} || ( tail -n +1 $WORKSPACE/dist/RPMS/{root,build}.log && exit 1 )
+sudo mock --verbose -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --resultdir=$WORKSPACE/dist/RPMS/ ${SRPM} || ( tail -n +1 $WORKSPACE/dist/RPMS/{root,build}.log && exit 1 )
 
 ## Upload the created RPMs to chacra
 chacra_endpoint="${PROJECT}/${BRANCH}/${GIT_COMMIT}/${DISTRO}/${RELEASE}"
index 2ee2bfb1ef219d4d69140e09be3ecd676e2eb62a..85d536c32409563e5f02582b6dd82b7ebeea75ba 100644 (file)
@@ -15,7 +15,7 @@
       - string:
           name: DISTROS
           description: "A list of distros to build for. Available options are: centos7"
-          default: "centos7"
+          default: "centos7 centos8"
 
       - string:
           name: ARCHS
@@ -35,7 +35,9 @@ If this is checked, then the binaries will be built and pushed to chacra even if
           default: "/tmp/"
 
     execution-strategy:
-       combination-filter: DIST==AVAILABLE_DIST && ARCH==AVAILABLE_ARCH && (ARCH=="x86_64" || (ARCH == "arm64" && (DIST == "xenial" || DIST == "centos7")))
+       combination-filter: |
+         DIST == AVAILABLE_DIST && ARCH == AVAILABLE_ARCH &&
+         (ARCH == "x86_64" || (ARCH == "arm64" && ["centos7", "centos8"].contains(DIST)))
     axes:
       - axis:
           type: label-expression
@@ -52,6 +54,7 @@ If this is checked, then the binaries will be built and pushed to chacra even if
           name: AVAILABLE_DIST
           values:
             - centos7
+            - centos8
       - axis:
           type: dynamic
           name: DIST