+- 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}'
+