+ properties:
+ - inject: *lttng-tools_property_inject_defaults
+ - build-discarder:
+ days-to-keep: 1
+ - throttle:
+ option: 'category'
+ categories:
+ - 'gerrit-{buildtype}'
+
+ <<: *lttng-tools_matrix_axes_rootbuild
+ <<: *lttng-tools_builders_review
+
+ publishers:
+ - tap: *lttng-tools_publisher_tap_defaults
+ - raw: *lttng-tools_publisher_warnings-ng_defaults
+ - archive: *lttng-tools_publisher_archive_defaults
+ - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
+
+- job-template:
+ name: 'dev_review_lttng-tools_{version}_root_{buildtype}'
+ defaults: lttng-tools
+ concurrent: true
+
+ scm:
+ - git: *lttng-tools_scm_git_review
+
+ triggers:
+ - gerrit: *lttng-tools_trigger_gerrit_default
+
+ properties:
+ - inject: *lttng-tools_property_inject_defaults
+ - build-discarder:
+ days-to-keep: 1
+ - throttle:
+ option: 'category'
+ categories:
+ - 'gerrit-{buildtype}'
+
+ <<: *lttng-tools_matrix_axes_rootbuild
+ <<: *lttng-tools_builders_review
+
+ publishers:
+ - tap: *lttng-tools_publisher_tap_defaults
+ - raw: *lttng-tools_publisher_warnings-ng_defaults
+ - archive: *lttng-tools_publisher_archive_defaults
+ - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
+
+- job-template:
+ name: 'dev_review_lttng-tools_{version}_check-format'
+ defaults: lttng-tools
+ concurrent: true
+
+ scm:
+ - git: *lttng-tools_scm_git_review
+
+ triggers:
+ - gerrit: *lttng-tools_trigger_gerrit_smoke_1
+
+ node: 'deb12-amd64'
+
+ builders:
+ - shell:
+ !include-raw-escape: scripts/common/check-format.sh
+
+ properties:
+ - inject: *lttng-tools_property_inject_defaults
+ - build-discarder:
+ days-to-keep: 1
+
+ publishers:
+ - archive:
+ artifacts: 'clang-format-fixes.diff'
+ allow-empty: true
+ - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
+
+- job-template:
+ name: lttng-tools_{version}_release
+ defaults: lttng-tools
+ node: 'deb12-amd64'
+
+ triggers:
+ - pollscm:
+ cron: "@daily"
+
+ scm:
+ - git:
+ url: https://github.com/{github_user}/lttng-tools.git
+ browser: githubweb
+ browser-url: https://github.com/{github_user}/lttng-tools
+ refspec: '+refs/tags/*:refs/remotes/origin/tags/*'
+ branches:
+ - '*/tags/{version}.*'
+ basedir: src/lttng-tools
+
+ builders:
+ - copyartifact:
+ <<: *lttng-tools_steps_copyartifact_defaults
+ project: 'liburcu_{urcuversion}_linuxbuild/platform=deb12-amd64,conf=std,build=std'
+ - copyartifact:
+ <<: *lttng-tools_steps_copyartifact_defaults
+ project: 'babeltrace_{babelversion}_linuxbuild/platform=deb12-amd64,conf=std,build=std'
+ - copyartifact:
+ <<: *lttng-tools_steps_copyartifact_defaults
+ project: 'lttng-ust_{ustversion}_linuxbuild/liburcu_version={urcuversion},platform=deb12-amd64,conf=agents,build=std'
+ - shell:
+ !include-raw-escape: scripts/lttng-tools/prebuild_clean_processes_coredumps.sh
+ - shell:
+ !include-raw-escape: scripts/lttng-tools/release.sh
+
+ publishers:
+ # On build abort (timeout), wait 10 seconds before running the other post
+ # build scripts, this will allow the processes to terminate and make the
+ # build log more legible.
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_wait_10_seconds_on_abort
+
+ # On build failure, try to get partial tap results if any exists
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_collect_tap_on_failure
+
+ # If there are leftover lttng processes or core files present, kill the
+ # processes, collect the core files, delete them and mark the build
+ # unstable.
+ - postbuildscript: *lttng-tools_publisher_postbuildscript_clean_processes_coredumps
+
+ - tap: *lttng-tools_publisher_tap_defaults
+ - raw: *lttng-tools_publisher_warnings-ng_defaults
+ - archive:
+ artifacts: 'out/**'
+ allow-empty: false
+ fingerprint: true
+ - workspace-cleanup: *lttng-tools_publisher_workspace-cleanup_defaults
+ - raw: *lttng-tools_publisher_proc-cleaner_defaults
+ - ircbot: *lttng-tools_publisher_ircbot_defaults
+
+- job-template:
+ name: lttng-tools_{version}_scan-build
+ defaults: lttng-tools
+ node: 'deb12-amd64'
+
+ triggers:
+ - pollscm:
+ cron: "@daily"
+
+ builders:
+ - copyartifact:
+ <<: *lttng-tools_steps_copyartifact_defaults
+ project: 'liburcu_{urcuversion}_linuxbuild/platform=deb12-amd64,conf=std,build=std'
+ - copyartifact:
+ <<: *lttng-tools_steps_copyartifact_defaults
+ project: 'babeltrace_{babelversion}_linuxbuild/platform=deb12-amd64,conf=std,build=std'
+ - copyartifact:
+ <<: *lttng-tools_steps_copyartifact_defaults
+ project: 'lttng-ust_{ustversion}_linuxbuild/liburcu_version={urcuversion},platform=deb12-amd64,conf=std,build=std'