]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
adds support for dynamic DISTROS and ARCHS
authorAndrew Schoen <aschoen@redhat.com>
Mon, 29 Aug 2016 15:31:25 +0000 (10:31 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 29 Aug 2016 15:31:25 +0000 (10:31 -0500)
We will now be able to define with distros and archs we
wish to build for.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build/config/definitions/ceph-build.yml
ceph/config/definitions/ceph.yml

index d759bbfcb4127b4e943af7e83d65e0251ff67453..4f7d09a23d8b29498bb1c94c5546588121bec290 100644 (file)
@@ -9,7 +9,7 @@
       - github:
           url: https://github.com/ceph/ceph
     execution-strategy:
-      combination-filter: ARCH=="x86_64" || (ARCH == "arm64" && (DIST == "xenial" || DIST == "centos7"))
+       combination-filter: DIST==AVAILABLE_DIST && ARCH==AVAILABLE_ARCH && (ARCH=="x86_64" || (ARCH == "arm64" && (DIST == "xenial" || DIST == "centos7")))
     axes:
       - axis:
           type: label-expression
             - huge
       - axis:
           type: label-expression
-          name: ARCH
+          name: AVAILABLE_ARCH
           values:
             - x86_64
             - arm64
       - axis:
           type: label-expression
-          name: DIST
+          name: AVAILABLE_DIST
           values:
-            - jessie
-            #- wheezy
-            #- precise
             - trusty
             - xenial
-            #- centos6
             - centos7
+            - jessie
+            - precise
+            - centos6
+            - wheezy
+      - axis:
+          type: dynamic
+          name: DIST
+          values:
+            - DISTROS
+      - axis:
+          type: dynamic
+          name: ARCH
+          values:
+            - ARCHS
 
     builders:
       - shell: |
index 015393f0d1a99a4705307b30ec9c887bfabf5ece..dec838ab68e95fb0d7ea31a0dea23bc665566bc9 100644 (file)
@@ -69,6 +69,16 @@ Defaults to un-checked"
           description: "Base parent path for virtualenv locations, set to avoid issues with extremely long paths that are incompatible with tools like pip. Defaults to '/tmp/' (note the trailing slash, which is required)."
           default: "/tmp/"
 
+      - string:
+          name: DISTROS
+          description: "A list of distros to build for. Available options are: xenial, centos7, centos6, trusty, precise, wheezy, and jessie"
+          default: "xenial centos7"
+
+      - string:
+          name: ARCHS
+          description: "A list of architectures to build for. Available options are: x86_64, and arm64"
+          default: "x86_64"
+
     builders:
       - multijob:
           name: 'ceph tag phase'