+- job-template:
+ name: dev_gerrit_babeltrace_{buildtype}
+ defaults: babeltrace
+ concurrent: true
+
+ scm:
+ - git:
+ url: https://review.lttng.org/babeltrace
+ refspec: 'refs/changes/*:refs/changes/*'
+ branches:
+ - '$GERRIT_REFSPEC'
+ basedir: src/babeltrace
+ skip-tag: true
+
+ triggers:
+ - gerrit:
+ trigger-on:
+ - comment-added-event:
+ approval-category: 'CI-Build'
+ approval-value: 1
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'babeltrace'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**'
+
+ project-type: matrix
+ node: 'master' # Applies only to matrix flyweight task
+ execution-strategy:
+ combination-filter: |
+ {filter}
+ axes:
+ - axis:
+ type: slave
+ name: arch
+ values: '{obj:arch}'
+ - axis:
+ type: user-defined
+ name: conf
+ values: '{obj:conf}'
+ - axis:
+ type: user-defined
+ name: build
+ values: '{obj:build}'
+
+ <<: *babeltrace_build_builders_defaults
+ <<: *babeltrace_build_publishers_gerrit
+
+ properties:
+ - inject:
+ properties-content: |
+ PROJECT_NAME=babeltrace
+ - build-discarder:
+ days-to-keep: 1
+ - throttle:
+ option: 'category'
+ categories:
+ - 'gerrit-{buildtype}'
+
+- job-template:
+ name: dev_gerrit_babeltrace_winbuild
+ defaults: babeltrace
+ concurrent: true
+
+ scm:
+ - git:
+ url: https://review.lttng.org/babeltrace
+ refspec: 'refs/changes/*:refs/changes/*'
+ branches:
+ - '$GERRIT_REFSPEC'
+ basedir: src/babeltrace
+ skip-tag: true
+
+ triggers:
+ - gerrit:
+ trigger-on:
+ - comment-added-event:
+ approval-category: 'CI-Build'
+ approval-value: 1
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'babeltrace'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**'
+
+ properties:
+ - inject:
+ properties-content: |
+ PROJECT_NAME=babeltrace
+ - build-discarder:
+ days-to-keep: 1
+ - throttle:
+ option: 'category'
+ categories:
+ - 'gerrit-winbuild'
+
+ <<: *babeltrace_build_axes_defaults
+ <<: *babeltrace_build_builders_win
+ <<: *babeltrace_build_publishers_gerrit
+
+- job-template:
+ name: babeltrace_{version}_release
+ defaults: babeltrace
+ node: 'amd64'
+
+ triggers:
+ - pollscm:
+ cron: "@daily"
+
+ scm:
+ - git:
+ url: https://github.com/{github_user}/{github_name}.git
+ browser: githubweb
+ browser-url: https://github.com/{github_user}/{github_name}
+ refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
+ branches:
+ - '*/tags/{version}.*'
+ basedir: src/babeltrace
+
+ builders:
+ - shell:
+ !include-raw-escape: scripts/babeltrace/release.sh
+
+ 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:
+ unstable:
+ total-all: 0
+ total-high: 0
+ total-normal: 0
+ total-low: 0
+ - workspace-cleanup:
+ clean-if:
+ - failure: false
+ - archive:
+ artifacts: 'out/**,tap/**'
+ allow-empty: false
+
+- job-template:
+ name: dev_gerrit_babeltrace_pylint
+ defaults: babeltrace
+ concurrent: true
+
+ scm:
+ - git:
+ url: https://review.lttng.org/babeltrace
+ refspec: 'refs/changes/*:refs/changes/*'
+ branches:
+ - '$GERRIT_REFSPEC'
+ basedir: src/babeltrace
+ skip-tag: true
+
+ triggers:
+ - gerrit:
+ trigger-on:
+ - comment-added-event:
+ approval-category: 'CI-Build'
+ approval-value: 1
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'babeltrace'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**'
+
+ node: 'amd64'
+
+ builders:
+ - shell:
+ !include-raw-escape: scripts/babeltrace/pylint.sh
+
+ properties:
+ - inject:
+ properties-content: |
+ PROJECT_NAME=babeltrace
+ - build-discarder:
+ days-to-keep: 1
+