jjb: babeltrace: use clang-format-16
[lttng-ci.git] / jobs / barectf.yaml
index e5f11d3d24d30f9164fb9b1412f5d757adf8a5fc..160bf3814bdaec111cfc8a44d6e1d8414c80a419 100644 (file)
     project-type: freestyle
 
     wrappers:
-      - workspace-cleanup
-      - timestamps
-      - ansicolor:
+      - ansicolor: &barectf_wrapper_ansicolor_defaults
           colormap: xterm
+      - timeout: &barectf_wrapper_timeout_defaults
+          timeout: 20
+          fail: true
+          type: no-activity
+      - timestamps
+      - workspace-cleanup
 
     scm:
       - git:
-          url: git://github.com/{github_user}/{github_name}.git
+          url: https://github.com/{github_user}/{github_name}.git
           browser: githubweb
           browser-url: https://github.com/{github_user}/{github_name}
           branches:
 
     properties:
       - build-discarder:
-          num-to-keep: 2
+          num-to-keep: 10
+          artifact-num-to-keep: 2
       - github:
           url: https://github.com/{github_user}/{github_name}
 
+    publishers:
+      - workspace-cleanup: &barectf_publisher_workspace_cleanup_defaults
+          clean-if:
+            - failure: false
+      - ircbot: &barectf_publisher_ircbot_defaults
+          strategy: statechange-only
+          message-type: summary
+          matrix-notifier: only-parent
+
 
 ## Templates ##
 - job-template:
-    name: barectf_{version}_build
+    name: barectf_{version}_{buildtype}
     defaults: barectf
 
     project-type: matrix
     axes:
       - axis:
          type: slave
-         name: arch
-         values: '{obj:arch}'
+         name: platform
+         values: '{obj:platforms}'
 
     builders:
       - shell:
          !include-raw-escape: scripts/barectf/build.sh
 
     publishers:
+      - workspace-cleanup: *barectf_publisher_workspace_cleanup_defaults
+      - ircbot: *barectf_publisher_ircbot_defaults
       - email-ext:
          recipients: '{obj:email_to}'
          reply-to: ci-notification@lists.lttng.org
@@ -81,7 +97,7 @@
            - recipients
 
 - job-template:
-    name: dev_gerrit_barectf_{buildtype}
+    name: dev_review_barectf_{version}_{buildtype}
     defaults: barectf
     concurrent: true
 
     axes:
       - axis:
          type: slave
-         name: arch
-         values: '{obj:arch}'
+         name: platform
+         values: '{obj:platforms}'
 
     scm:
       - git:
             - project-compare-type: 'PLAIN'
               project-pattern: 'barectf'
               branches:
-                - branch-compare-type: 'ANT'
-                  branch-pattern: '**'
+                - branch-compare-type: 'PLAIN'
+                  branch-pattern: '{version}'
 
     properties:
       - build-discarder:
           option: 'category'
           categories:
             - 'gerrit-{buildtype}'
+
     builders:
       - shell:
          !include-raw-escape: scripts/barectf/build.sh
 
+    publishers:
+      - workspace-cleanup: *barectf_publisher_workspace_cleanup_defaults
+
 
 ## Views ##
 - view-template:
     version:
       - master
       - stable-3.0
+      - stable-3.1
     jobs:
-      - 'barectf_{version}_build':
-          arch: !!python/tuple [i386, amd64]
+      - 'barectf_{version}_{buildtype}':
+          buildtype: linuxbuild
+          platforms: !!python/tuple [deb12-amd64]
 
 - project:
-    name: gerrit-barectf
+    name: review-barectf
     github_user: efficios
     github_name: barectf
+    version:
+      - master
+      - stable-3.0
+      - stable-3.1
     jobs:
-      - 'dev_gerrit_barectf_{buildtype}':
-          buildtype: build
-          arch: !!python/tuple [i386, amd64]
+      - 'dev_review_barectf_{version}_{buildtype}':
+          buildtype: linuxbuild
+          platforms: !!python/tuple [deb12-amd64]
 
 - project:
     name: barectf-views
This page took 0.025247 seconds and 4 git commands to generate.