jjb: Add clang builds for lttng-ust
authorKienan Stewart <kstewart@efficios.com>
Thu, 5 Sep 2024 19:42:02 +0000 (15:42 -0400)
committerKienan Stewart <kstewart@efficios.com>
Mon, 9 Sep 2024 13:44:55 +0000 (09:44 -0400)
Change-Id: I9d85c23775ffaee8c52aa0c62e7126c8d77a4bcf
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
jobs/lttng-ust.yaml

index b59450725aaf91f638995d5a0c95c9f9cec95422..9ecb82e63fba46ca7cae62ca6ff8009df46c31d9 100644 (file)
 
       - copyartifact:
           <<: *lttng-ust_steps_copyartifact_defaults
-          project: '{job_prefix}liburcu_${{liburcu_version}}_{buildtype}/platform=${{platform}},conf=${{liburcu_conf}},build=std'
+          project:
+            !j2: |
+              {{job_prefix}}liburcu_{%- raw -%}${liburcu_version}{%- endraw -%}
+              _{{cctype|default(buildtype)}}/platform={%- raw %}${platform}{%- endraw -%}
+              ,build=std,conf={%- raw -%}${liburcu_conf}{%- endraw -%}
+              {%- if ccs|default(false) %},cc={%- raw -%}${cc}{%- endraw -%}{% endif -%}
 
       # Run the build
       - shell:
 
       - copyartifact:
           <<: *lttng-ust_steps_copyartifact_defaults
-          project: 'liburcu_${{liburcu_version}}_{buildtype}/platform=${{platform}},conf=${{liburcu_conf}},build=std'
+          project:
+            !j2: |
+              liburcu_{%- raw -%}${liburcu_version}{%- endraw -%}
+              _{{cctype|default(buildtype)}}/platform={%- raw %}${platform}{%- endraw -%}
+              ,build=std,conf={%- raw -%}${liburcu_conf}{%- endraw -%}
+              {%- if ccs|default(false) %},cc={%- raw -%}${cc}{%- endraw -%}{% endif -%}
 
       - copyartifact:
           <<: *lttng-ust_steps_copyartifact_defaults
     <<: *lttng-ust_builders_defaults
     <<: *lttng-ust_publishers_defaults
 
+- job-template:
+    name: '{job_prefix}lttng-ust_{version}_{cctype}'
+    defaults: lttng-ust
+    <<: *lttng-ust_matrix_axes_defaults
+    axes:
+      - axis:
+          <<: *lttng-ust_matrix_axis_platform
+      - axis:
+          <<: *lttng-ust_matrix_axis_conf
+      - axis:
+          <<: *lttng-ust_matrix_axis_build
+      - axis:
+          <<: *lttng-ust_matrix_axis_liburcu_version
+      - axis:
+         type: user-defined
+         name: cc
+         values: '{obj:ccs}'
+
+    <<: *lttng-ust_builders_defaults
+    <<: *lttng-ust_publishers_defaults
 
 - job-template:
     name: dev_review_lttng-ust_{version}_{buildtype}
     defaults: lttng-ust
     concurrent: true
 
-    scm:
+    scm: &lttng-ust_dev_review_scm
       - git:
           url: https://review.lttng.org/lttng-ust
           refspec: 'refs/changes/*:refs/changes/*'
           basedir: src/lttng-ust
           skip-tag: true
 
-    triggers:
+    triggers: &lttng-ust_dev_review_triggers
       - gerrit: &lttng-ust_trigger_gerrit_defaults
           trigger-on:
             - comment-added-event:
     <<: *lttng-ust_builders_defaults
     <<: *lttng-ust_publishers_review
 
-    properties:
+    properties: &lttng-ust_dev_review_properties
       - inject:
           properties-content: |
             PROJECT_NAME=lttng-ust
           categories:
             - 'gerrit-{buildtype}'
 
+- job-template:
+    name: 'dev_review_lttng-ust_{version}_{cctype}'
+    defaults: lttng-ust
+    concurrent: true
+    scm: *lttng-ust_dev_review_scm
+    triggers: *lttng-ust_dev_review_triggers
+    properties: *lttng-ust_dev_review_properties
+    <<: *lttng-ust_matrix_axes_defaults
+    axes:
+      - axis:
+          <<: *lttng-ust_matrix_axis_platform
+      - axis:
+          <<: *lttng-ust_matrix_axis_conf
+      - axis:
+          <<: *lttng-ust_matrix_axis_build
+      - axis:
+          <<: *lttng-ust_matrix_axis_liburcu_version
+      - axis:
+         type: user-defined
+         name: cc
+         values: '{obj:ccs}'
+    <<: *lttng-ust_builders_defaults
+    <<: *lttng-ust_publishers_review
 
 - job-template:
     name: dev_review_lttng-ust_lttng-tools_{version}_{buildtype}
           liburcu_versions: !!python/tuple [stable-0.13, master]
           filter: ''
           touchstone: ''
+      - '{job_prefix}lttng-ust_{version}_{cctype}':
+          buildtype: linuxbuild
+          cctype: clangbuild
+          ccs: !!python/tuple [clang-13, clang-14, clang-15, clang-16]
+          version: master
+          platforms: !!python/tuple [deb12-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [std, agents]
+          liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
+          filter: ''
+          touchstone: ''
       - 'lttng-ust_{version}_scan-build':
           version: master
       - 'lttng-ust_{version}_coverity':
           liburcu_versions: !!python/tuple [stable-0.13, master]
           filter: ''
           touchstone: ''
+      - '{job_prefix}lttng-ust_{version}_{cctype}':
+          buildtype: linuxbuild
+          cctype: clangbuild
+          ccs: !!python/tuple [clang-13, clang-14, clang-15, clang-16]
+          version: stable-2.13
+          platforms: !!python/tuple [deb12-amd64]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [agents]
+          liburcu_versions: !!python/tuple [stable-0.13, stable-0.14, master]
+          filter: ''
+          touchstone: ''
       - 'lttng-ust_{version}_scan-build':
           version: stable-2.13
 
           liburcu_versions: !!python/tuple [stable-0.14]
           filter: ''
           touchstone: ''
+      - 'dev_review_lttng-ust_{version}_{cctype}':
+          cctype: clangbuild
+          ccs: ['clang-13', 'clang-14', 'clang-15', 'clang-16']
+          version: master
+          buildtype: linuxbuild
+          platforms: !!python/tuple [deb12-amd64]
+          builds: !!python/tuple [std, oot, dist, oot-dist]
+          confs: !!python/tuple [std, agents]
+          filter: ''
+          touchstone: ''
+          liburcu_versions: !!python/tuple [stable-0.14]
+          babeltrace_version: stable-2.0
 
       ## Stable 2.13 ##
       - 'dev_review_lttng-ust_{version}_{buildtype}':
This page took 0.02509 seconds and 4 git commands to generate.