jjb: librseq: Add gerrit job
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 15 Dec 2021 18:26:15 +0000 (13:26 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 15 Dec 2021 18:26:15 +0000 (13:26 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Change-Id: I89dc38ae5872ff12fdee5e1ba620c814eb55198d

jobs/librseq.yaml
scripts/librseq/build.sh

index b0b1f3f1a57fb67f6a0e5096ac6f2027cdeb75c3..97e45cba877e58b0db44747b05a4427536475e74 100644 (file)
 - librseq_build_publishers_defaults: &librseq_build_publishers_defaults
     name: 'librseq_build_publishers_defaults'
     publishers:
+      - tap:
+          results: 'tap/**/*.log'
+          fail-if-no-results: true
+          failed-tests-mark-build-as-failure: true
+          todo-is-failure: false
       - warnings:
           console-log-parsers:
             - 'GNU Make + GNU C Compiler (gcc)'
               total-normal: 0
               total-low: 0
       - archive:
-          artifacts: 'build/**'
+          artifacts: 'build/**,tap/**'
           allow-empty: false
       - ircbot:
           strategy: new-failure-and-fixed
           send-to:
             - recipients
 
+- librseq_build_publishers_gerrit: &librseq_build_publishers_gerrit
+    name: 'librseq_build_publishers_gerrit'
+    publishers:
+      - tap:
+          results: 'tap/**/*.log'
+          fail-if-no-results: true
+          failed-tests-mark-build-as-failure: true
+          todo-is-failure: false
+      - warnings:
+          console-log-parsers:
+            - 'GNU Make + GNU C Compiler (gcc)'
+          total-thresholds:
+            failed:
+              total-all: 0
+              total-high: 0
+              total-normal: 0
+              total-low: 0
+      - archive:
+          artifacts: 'build/**,tap/**'
+          allow-empty: false
+
+
 ## Templates
 - job-template:
     name: librseq_{version}_{buildtype}
           send-to:
             - recipients
 
+- job-template:
+    name: dev_gerrit_librseq_{buildtype}
+    defaults: librseq
+    concurrent: true
+
+    scm:
+      - git:
+          url: https://review.lttng.org/librseq
+          refspec: 'refs/changes/*:refs/changes/*'
+          branches:
+            - '$GERRIT_REFSPEC'
+          basedir: src/librseq
+          skip-tag: true
+
+    triggers:
+      - gerrit:
+          trigger-on:
+            - comment-added-event:
+                approval-category: 'CI-Build'
+                approval-value: 1
+          projects:
+            - project-compare-type: 'PLAIN'
+              project-pattern: 'librseq'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**'
+
+    <<: *librseq_build_axes_defaults
+    <<: *librseq_build_builders_defaults
+    <<: *librseq_build_publishers_gerrit
+
+    properties:
+      - inject:
+          properties-content: |
+            PROJECT_NAME=librseq
+      - build-discarder:
+          days-to-keep: 1
+      - throttle:
+          option: 'category'
+          categories:
+            - 'gerrit-{buildtype}'
+
 - job-template:
     name: librseq_{version}_scan-build
     defaults: librseq
 #      - 'librseq_{version}_coverity':
 #          version: master
 
+- project:
+    name: gerrit-librseq
+    github_user: compudj
+    github_name: librseq
+    jobs:
+      - 'dev_gerrit_librseq_{buildtype}':
+          buildtype: build
+          arch: !!python/tuple [amd64]
+          build: !!python/tuple [std, oot, dist, oot-dist]
+          conf: !!python/tuple [std, static]
+
 - project:
     name: librseq-views
     views:
index 826cfa91760c910fbf4111e9f38705e6e44a5191..1a2d85293ef172ab204fc2335e0ab5f2f807867c 100755 (executable)
@@ -295,7 +295,7 @@ ret=$?
 set -e
 
 # Copy tap logs for the jenkins tap parser before cleaning the build dir
-#rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap"
+rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap"
 
 # Clean the build directory
 $MAKE clean
This page took 0.025055 seconds and 4 git commands to generate.