]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build: do not build mimic on old distros 1019/head
authorKefu Chai <kchai@redhat.com>
Thu, 26 Apr 2018 07:17:45 +0000 (15:17 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 3 May 2018 17:25:28 +0000 (01:25 +0800)
mimic and nautilus require C++17 to build, but following distro do
not ship new enough GCC compiler:

- ubuntu trusty
- debian jessie
- debian stretch

so we won't build mimic or newer ceph on these distros.

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-build/config/definitions/ceph-build.yml

index 13c5555bf74b6f6c82e24cfad975a1ee8a636f37..98ee59d4d09cd51a4c77d62be6c354df2503045a 100644 (file)
             - ARCHS
 
     builders:
-      - shell: |
-          echo "Cleaning up top-level workarea (shared among workspaces)"
-          rm -rf dist
-          rm -rf venv
-          rm -rf release
-      - copyartifact:
-          project: ceph-setup
-          filter: 'dist/**'
-          which-build: multijob-build
-      - inject:
-          properties-file: ${WORKSPACE}/dist/sha1
-      - inject:
-          properties-file: ${WORKSPACE}/dist/other_envvars
-      # debian build scripts
-      - shell:
-          !include-raw:
-            - ../../build/validate_deb
-            - ../../../scripts/build_utils.sh
-            - ../../build/setup_deb
-            - ../../build/setup_pbuilder
-            - ../../build/build_deb
-      # rpm build scripts
-      - shell:
-          !include-raw:
-            - ../../build/validate_rpm
-            - ../../../scripts/build_utils.sh
-            - ../../build/setup_rpm
-            - ../../build/build_rpm
-
+      - conditional-step:
+          condition-kind: or
+          condition-operands:
+            - condition-kind: regex-match
+              regex: (jewel|kraken|luminous)
+              label: '${GIT_BRANCH}'
+            - condition-kind: and
+              condition-operands:
+                - condition-kind: regex-match
+                  regex: (mimic|nautilus)
+                  label: '${GIT_BRANCH}'
+                - condition-kind: regex-match
+                  regex: (xenial|bionic|centos7|centos8|buster|bullseye)
+                  label: '${DIST}'
+          on-evaluation-failure: dont-run
+          steps:
+            - shell: |
+                echo "Cleaning up top-level workarea (shared among workspaces)"
+                rm -rf dist
+                rm -rf venv
+                rm -rf release
+            - copyartifact:
+                project: ceph-setup
+                filter: 'dist/**'
+                which-build: multijob-build
+            - inject:
+                properties-file: ${WORKSPACE}/dist/sha1
+            - inject:
+                properties-file: ${WORKSPACE}/dist/other_envvars
+            # debian build scripts
+            - shell:
+                !include-raw:
+                  - ../../build/validate_deb
+                  - ../../../scripts/build_utils.sh
+                  - ../../build/setup_deb
+                  - ../../build/setup_pbuilder
+                  - ../../build/build_deb
+            # rpm build scripts
+            - shell:
+                !include-raw:
+                  - ../../build/validate_rpm
+                  - ../../../scripts/build_utils.sh
+                  - ../../build/setup_rpm
+                  - ../../build/build_rpm
     publishers:
       - postbuildscript:
           builders: