]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-new-trigger: add jaeger-only trigger
authorDeepika Upadhyay <dupadhya@redhat.com>
Wed, 7 Jul 2021 17:39:27 +0000 (23:09 +0530)
committerDeepika Upadhyay <dupadhya@redhat.com>
Fri, 9 Jul 2021 15:43:35 +0000 (21:13 +0530)
if branch will have `jaeger` in branch name, it shall only build
      focal, centos8 x86_64

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
ceph-dev-new-trigger/config/definitions/ceph-dev-new-trigger.yml

index 09677d0ad6050cd7c755d281dfc07c0e54e719bd..015aae67a120c2c18ea65055f186d113ceccbe8e 100644 (file)
       - conditional-step:
           condition-kind: shell
           condition-command: |
-            echo "${GIT_BRANCH}" | grep -v '\(luminous\|mimic\|nautilus\|octopus\|pacific\|crimson-only\)'
+            echo "${GIT_BRANCH}" | grep -v '\(luminous\|mimic\|nautilus\|octopus\|pacific\|crimson-only\|jaeger)'
           on-evaluation-failure: dont-run
           steps:
             - shell:
                     DISTROS=centos8
                     FLAVOR=crimson
                     ARCHS=x86_64
+      # Build jaegertracing branch on needed env,  don't waste resources on the default one.
+      # Useful for testing specific builds failure
+      # default: focal, centos8
+      - conditional-step:
+          condition-kind: regex-match
+          regex: .*jaeger.*
+          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=centos8 focal
+                    FLAVOR=jaeger
+                    ARCHS=x86_64
 
     wrappers:
       - inject-passwords: