]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev*trigger: Set correct distro/flavor combos based on release 1459/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 17 Dec 2019 23:24:03 +0000 (18:24 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 18 Dec 2019 14:28:32 +0000 (09:28 -0500)
Based on https://pad.ceph.com/p/py3

Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-dev-new-trigger/config/definitions/ceph-dev-new-trigger.yml
ceph-dev-trigger/config/definitions/ceph-dev-trigger.yml

index 4d958c8b86e83013d5f482e6f91cfc6eca8df2ab..044cd386bf029ea3c507bbcefeda86d35d2ef564 100644 (file)
           wipe-workspace: true
 
     builders:
+      # Build luminous on:
+      # default: centos7 bionic xenial trusty
+      # notcmalloc: centos7
       - conditional-step:
           condition-kind: regex-match
-          regex: .*(jewel|kraken|luminous).*
+          regex: .*luminous.*
           label: '${GIT_BRANCH}'
           on-evaluation-failure: dont-run
           steps:
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
+                    DISTROS=centos7 bionic xenial trusty
                 - project: 'ceph-dev-new'
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
                     FLAVOR=notcmalloc
+                    DISTROS=centos7
+      # build mimic on:
+      # default: bionic xenial centos7
+      # notcmalloc: centos7
       - conditional-step:
-          condition-kind: shell
-          condition-command: |
-            echo "${GIT_BRANCH}" | grep '\(mimic\|nautilus\)'
+          condition-kind: regex-match
+          regex: .*mimic.*
+          label: '${GIT_BRANCH}'
           on-evaluation-failure: dont-run
           steps:
             - shell:
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=bionic xenial centos7 centos8
+                    DISTROS=bionic xenial centos7
                 - project: 'ceph-dev-new'
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=centos7 centos8
+                    DISTROS=centos7
                     FLAVOR=notcmalloc
+      # build nautilus on:
+      # default: bionic xenial centos7 leap15
+      # notcmalloc: centos7
       - conditional-step:
-          condition-kind: shell
-          condition-command: |
-            echo "${GIT_BRANCH}" | grep -v '\(jewel\|kraken\|luminous\|mimic\|nautilus\)'
+          condition-kind: regex-match
+          regex: .*nautilus.*
+          label: '${GIT_BRANCH}'
           on-evaluation-failure: dont-run
           steps:
             - shell:
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=bionic centos7 leap15 centos8
+                    DISTROS=bionic xenial centos7 leap15
                 - project: 'ceph-dev-new'
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=centos7 centos8
+                    DISTROS=centos7
                     FLAVOR=notcmalloc
-                - project: 'ceph-dev-new'
-                  predefined-parameters: |
-                    BRANCH=${GIT_BRANCH}
-                    FORCE=True
-                    DISTROS=bionic
-                    FLAVOR=crimson
+      # If no release name is found in branch, build on all possible distro/flavor combos
       - conditional-step:
           condition-kind: regex-match
           regex: .*(luminous|mimic|nautilus).*
           label: '${GIT_BRANCH}'
-          on-evaluation-failure: dont-run
+          on-evaluation-failure: run
           steps:
             - shell:
                 !include-raw:
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=leap15
+                    DISTROS=bionic xenial centos7 centos8 leap15
+            - trigger-builds:
+                - project: 'ceph-dev-new'
+                  predefined-parameters: |
+                    BRANCH=${GIT_BRANCH}
+                    FORCE=True
+                    DISTROS=centos7 centos8
+                    FLAVOR=notcmalloc
+            - trigger-builds:
+                - project: 'ceph-dev-new'
+                  predefined-parameters: |
+                    BRANCH=${GIT_BRANCH}
+                    FORCE=True
+                    DISTROS=bionic
+                    FLAVOR=crimson
 
     wrappers:
       - inject-passwords:
index 168feba6dbc3a75bb15aa29137ba6fba0c4ce79b..4c1f96b0df99f09a118edfc30d7710b04fc38372 100644 (file)
@@ -23,8 +23,6 @@
       - git:
           url: https://github.com/ceph/ceph
           browser: auto
-          # The default is to build and publish every branch.
-          # Uncomment this for testing:
           branches:
             - 'origin/master'
             - 'origin/jewel'
           wipe-workspace: true
 
     builders:
+      # Build luminous on:
+      # default: centos7 bionic xenial trusty
+      # notcmalloc: centos7
       - conditional-step:
           condition-kind: regex-match
-          regex: .*(master|octopus).*
+          regex: .*luminous.*
           label: '${GIT_BRANCH}'
           on-evaluation-failure: dont-run
           steps:
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=bionic centos7 centos8
+                    DISTROS=centos7 bionic xenial trusty
                 - project: 'ceph-dev'
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=centos7 centos8
                     FLAVOR=notcmalloc
+                    DISTROS=centos7
+      # build mimic on:
+      # default: bionic xenial centos7
+      # notcmalloc: centos7
       - conditional-step:
           condition-kind: regex-match
-          regex: .*(jewel|kraken|luminous).*
+          regex: .*mimic.*
           label: '${GIT_BRANCH}'
           on-evaluation-failure: dont-run
           steps:
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
+                    DISTROS=bionic xenial centos7
                 - project: 'ceph-dev'
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
+                    DISTROS=centos7
                     FLAVOR=notcmalloc
+      # build nautilus on:
+      # default: bionic xenial centos7 leap15
+      # notcmalloc: centos7
       - conditional-step:
           condition-kind: regex-match
-          regex: .*(luminous|mimic|nautilus|octopus|master).*
+          regex: .*nautilus.*
           label: '${GIT_BRANCH}'
           on-evaluation-failure: dont-run
           steps:
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=leap15
+                    DISTROS=bionic xenial centos7 leap15
+                - project: 'ceph-dev'
+                  predefined-parameters: |
+                    BRANCH=${GIT_BRANCH}
+                    FORCE=True
+                    DISTROS=centos7
+                    FLAVOR=notcmalloc
+      # build master and octopus on:
+      # default: bionic centos7 centos8 leap15
+      # notcmalloc: centos7 centos8
+      # crimson: bionic
       - conditional-step:
-          condition-kind: shell
-          condition-command: |
-            echo "${GIT_BRANCH}" | grep -v '\(jewel\|kraken\|luminous\|master\|octopus\)'
+          condition-kind: regex-match
+          regex: .*(master|octopus).*
+          label: '${GIT_BRANCH}'
           on-evaluation-failure: dont-run
           steps:
             - shell:
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=bionic xenial centos7
+                    DISTROS=bionic centos7 centos8 leap15
                 - project: 'ceph-dev'
                   predefined-parameters: |
                     BRANCH=${GIT_BRANCH}
                     FORCE=True
-                    DISTROS=centos7
+                    DISTROS=centos7 centos8
                     FLAVOR=notcmalloc
+                - project: 'ceph-dev'
+                  predefined-parameters: |
+                    BRANCH=${GIT_BRANCH}
+                    FORCE=True
+                    DISTROS=bionic
+                    FLAVOR=crimson
 
     wrappers:
       - inject-passwords: