jjb: librseq: add review portbuild job
[lttng-ci.git] / jobs / librseq.yaml
index 12353519cbcdf8f07935780e1915e0cea0bcf5b7..ff7f4c285e030f21bd99cad4f2854b6272ebec84 100644 (file)
@@ -4,7 +4,6 @@
 # jobtypes:
 #   - build
 #   - portbuild
-#   - cppcheck
 #   - coverity
 #   - scan-build
 #   - pylint
           properties-content: |
             PROJECT_NAME=librseq
       - build-discarder:
-          num-to-keep: 2
+          num-to-keep: 10
+          artifact-num-to-keep: 2
       - github:
           url: https://github.com/{github_user}/{github_name}
 
 
 ## Anchors
-- librseq_matrix_axes_defaults: &librseq_matrix_axes_defaults
+- _librseq_matrix_axes_defaults: &librseq_matrix_axes_defaults
     name: 'librseq_matrix_axes_defaults'
     project-type: matrix
     node: 'master' # Applies only to matrix flyweight task
@@ -74,7 +74,7 @@
          name: build
          values: '{obj:builds}'
 
-- librseq_matrix_axes_cc: &librseq_matrix_axes_cc
+- _librseq_matrix_axes_cc: &librseq_matrix_axes_cc
     name: 'librseq_matrix_axes_cc'
     project-type: matrix
     node: 'master' # Applies only to matrix flyweight task
@@ -91,7 +91,7 @@
          name: cc
          values: '{obj:ccs}'
 
-- librseq_builders_defaults: &librseq_builders_defaults
+- _librseq_builders_defaults: &librseq_builders_defaults
     name: 'librseq_builders_defaults'
     builders:
       - shell:
            - scripts/common/print.sh
            - scripts/librseq/build.sh
 
-- librseq_publishers_defaults: &librseq_publishers_defaults
+- _librseq_publishers_defaults: &librseq_publishers_defaults
     name: 'librseq_publishers_defaults'
     publishers:
       - tap: &librseq_publisher_tap_defaults
           results: 'tap/**/*.log'
           fail-if-no-results: true
           failed-tests-mark-build-as-failure: true
+          include-comment-diagnostics: true
+          output-tap-to-console: false
           todo-is-failure: false
       - raw: &librseq_publisher_warnings-ng_defaults
           xml: |
                   <reportEncoding/>
                   <skipSymbolicLinks>false</skipSymbolicLinks>
                 </io.jenkins.plugins.analysis.warnings.Gcc4>
-                <io.jenkins.plugins.analysis.warnings.Clang>
-                  <id/>
-                  <name/>
-                  <jenkins plugin="plugin-util-api"/>
-                  <pattern/>
-                  <reportEncoding/>
-                  <skipSymbolicLinks>false</skipSymbolicLinks>
-                </io.jenkins.plugins.analysis.warnings.Clang>
               </analysisTools>
               <sourceCodeEncoding/>
               <sourceDirectory/>
               <scm/>
             </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
       - archive: &librseq_publisher_archive_defaults
-          artifacts: 'build/**,tap/**'
+          artifacts: 'build/**,tap/**,log/**'
+          follow-symlinks: true
           allow-empty: false
       - workspace-cleanup: &librseq_publisher_workspace-cleanup_defaults
           clean-if:
             - failure: false
+      - ircbot: &librseq_publisher_ircbot_defaults
+          strategy: statechange-only
+          message-type: summary
+          matrix-notifier: only-parent
       - email-ext: &librseq_publisher_email-ext_defaults
           recipients: '{obj:email_to}'
           reply-to: ci-notification@lists.lttng.org
           send-to:
             - recipients
 
-- librseq_publishers_gerrit: &librseq_publishers_gerrit
-    name: 'librseq_publishers_gerrit'
+- _librseq_publishers_review: &librseq_publishers_review
+    name: 'librseq_publishers_review'
     publishers:
       - tap: *librseq_publisher_tap_defaults
       - raw: *librseq_publisher_warnings-ng_defaults
     <<: *librseq_publishers_defaults
 
 - job-template:
-    name: librseq_{version}_cppcheck
-    defaults: librseq
-
-    triggers:
-      - pollscm:
-          cron: "@daily"
-
-    builders:
-      - shell: |
-          rm -f cppcheck-result.xml
-          cppcheck --enable=all --xml --xml-version=2 $WORKSPACE/src/librseq 2> cppcheck-result.xml
-
-    publishers:
-      - archive:
-          artifacts: 'cppcheck-result.xml'
-          allow-empty: false
-      - cppcheck:
-          pattern: 'cppcheck-result.xml'
-      - workspace-cleanup: *librseq_publisher_workspace-cleanup_defaults
-      - email-ext: *librseq_publisher_email-ext_defaults
-
-- job-template:
-    name: dev_gerrit_librseq_{buildtype}
+    name: dev_review_librseq_{version}_{buildtype}
     defaults: librseq
     concurrent: true
 
             - project-compare-type: 'PLAIN'
               project-pattern: 'librseq'
               branches:
-                - branch-compare-type: 'ANT'
-                  branch-pattern: '**'
+                - branch-compare-type: 'PLAIN'
+                  branch-pattern: '{version}'
 
     <<: *librseq_matrix_axes_defaults
     <<: *librseq_builders_defaults
-    <<: *librseq_publishers_gerrit
+    <<: *librseq_publishers_review
 
     properties:
       - inject:
 - job-template:
     name: librseq_{version}_scan-build
     defaults: librseq
-    node: 'amd64'
+    node: 'deb12-amd64'
 
     triggers:
       - pollscm:
 - job-template:
     name: librseq_{version}_coverity
     defaults: librseq
-    node: 'amd64'
+    node: 'deb12-amd64'
 
     triggers:
       - pollscm:
     jobs:
       - 'librseq_{version}_{buildtype}':
           buildtype: linuxbuild
-          platforms: !!python/tuple [jammy-amd64]
+          platforms: !!python/tuple [deb12-amd64]
           builds: !!python/tuple [std, oot, dist, oot-dist]
           confs: !!python/tuple [std, static]
-          touchstone: '(build == "std") && (conf == "std")'
-      - 'librseq_{version}_{cctype}':
-          cctype: gccbuild
-          platforms: !!python/tuple [jammy-amd64]
-          builds: !!python/tuple [std]
-          confs: !!python/tuple [std, static]
-          ccs: !!python/tuple [gcc-9, gcc-10, gcc-11, gcc-12]
-          touchstone: '(build == "std") && (conf == "std") && (cc == "gcc-11")'
+          touchstone: ''
       - 'librseq_{version}_{cctype}':
           cctype: clangbuild
-          platforms: !!python/tuple [jammy-amd64]
+          platforms: !!python/tuple [deb12-amd64]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std, static]
-          ccs: !!python/tuple [clang-11, clang-12, clang-13, clang-14]
-          touchstone: '(build == "std") && (conf == "std") && (cc == "clang-14")'
+          ccs: !!python/tuple [clang-13, clang-14, clang-15]
+          touchstone: ''
       - 'librseq_{version}_{buildtype}':
           buildtype: portbuild
-          platforms: !!python/tuple [deb11-armhf, deb11-arm64, sid-powerpc, deb11-ppc64el, deb11-i386]
+          platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
           builds: !!python/tuple [std]
           confs: !!python/tuple [std, static]
-          touchstone: '(build == "std") && (conf == "std") && (platform == "deb11-i386")'
+          touchstone: ''
 
 - project:
-    name: gerrit-librseq
+    name: review-librseq
     github_user: compudj
     github_name: librseq
+    version:
+      - master
     jobs:
-      - 'dev_gerrit_librseq_{buildtype}':
+      - 'dev_review_librseq_{version}_{buildtype}':
           buildtype: linuxbuild
-          platforms: !!python/tuple [jammy-amd64]
+          platforms: !!python/tuple [deb12-amd64]
           builds: !!python/tuple [std, oot, dist, oot-dist]
           confs: !!python/tuple [std, static]
-          touchstone: '(build == "std") && (conf == "std")'
+          touchstone: ''
+      - 'dev_review_librseq_{version}_{buildtype}':
+          buildtype: portbuild
+          platforms: !!python/tuple [deb12-armhf, deb12-arm64, deb12-ppc64el, deb12-i386]
+          builds: !!python/tuple [std]
+          confs: !!python/tuple [std]
+          touchstone: ''
 
 - project:
     name: librseq-views
This page took 0.026687 seconds and 4 git commands to generate.