]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev: allow for a strictly centos9 build 2104/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 1 Feb 2023 17:42:36 +0000 (12:42 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 2 Feb 2023 16:28:30 +0000 (11:28 -0500)
For those working on details of a centos9 build, testing should not
involve a bunch of other builds. Presenting this as a potential
solution.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
ceph-dev-new-trigger/config/definitions/ceph-dev-new-trigger.yml

index 4bf355337777011c351b6a0d96baafc74144b68a..41f0e2d6b9e5749ae6f652769c679bcc0fc51b31 100644 (file)
       - conditional-step:
           condition-kind: shell
           condition-command: |
-            echo "${GIT_BRANCH}" | grep -v '\(luminous\|mimic\|nautilus\|octopus\|pacific\|quincy\|crimson-only\|jaeger\)'
+            echo "${GIT_BRANCH}" | grep -v '\(luminous\|mimic\|nautilus\|octopus\|pacific\|quincy\|centos9-only\|crimson-only\|jaeger\)'
           on-evaluation-failure: dont-run
           steps:
             - shell:
                     DISTROS=centos8
                     FLAVOR=crimson
                     ARCHS=x86_64
+      # build only centos9, no crimson, no jaeger
+      - conditional-step:
+          condition-kind: regex-match
+          regex: .*centos9-only.*
+          label: '${GIT_BRANCH}'
+          on-evaluation-failure: dont-run
+          steps:
+            - shell:
+                !include-raw:
+                - ../../../scripts/build_utils.sh
+                - ../../build/notify
+            - trigger-builds:
+                - project: 'ceph-dev-new'
+                  predefined-parameters: |
+                    BRANCH=${GIT_BRANCH}
+                    FORCE=True
+                    DISTROS=centos9
+                    ARCHS=x86_64
       # Build only the `crimson` flavour, don't waste resources on the default one.
       # Useful for the crimson's bug-hunt at Sepia
       # crimson: centos8