+ !include-raw-escape:
+ - scripts/common/print.sh
+ - scripts/lttng-ust/build.sh
+
+- lttng-ust_build_builders_gerrit_lttng-tools: <tng-ust_build_builders_gerrit_lttng-tools
+ name: 'lttng-ust_build_builders_gerrit_lttng-tools'
+ builders:
+ - conditional-step:
+ condition-kind: strings-match
+ condition-string1: '$GERRIT_BRANCH'
+ condition-string2: master
+ on-evaluation-failure: run
+ steps:
+ - inject:
+ properties-content: liburcu_version=master
+ - conditional-step:
+ condition-kind: not
+ on-evaluation-failure: run
+ condition-operand:
+ condition-kind: strings-match
+ condition-string1: '$GERRIT_BRANCH'
+ condition-string2: master
+ steps:
+ - inject:
+ properties-content: 'liburcu_version={liburcu_version}'
+
+ - conditional-step:
+ condition-kind: regex-match
+ label: '$conf'
+ regex: (std|agents)
+ on-evaluation-failure: run
+ steps:
+ - copyartifact:
+ project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=std,build=std
+ which-build: last-successful
+ stable: false
+ filter: 'build/**'
+ target: 'deps'
+ do-not-fingerprint: true
+
+ - conditional-step:
+ condition-kind: regex-match
+ label: '$conf'
+ regex: (debug-rcu)
+ on-evaluation-failure: run
+ steps:
+ - copyartifact:
+ project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=debug-rcu,build=std
+ which-build: last-successful
+ stable: false
+ filter: 'build/**'
+ target: 'deps'
+ do-not-fingerprint: true
+ - conditional-step:
+ condition-kind: regex-match
+ label: '$conf'
+ regex: (tls_fallback)
+ on-evaluation-failure: run
+ steps:
+ - copyartifact:
+ project: liburcu_${{liburcu_version}}_{buildtype}/arch=$arch,conf=tls_fallback,build=std
+ which-build: last-successful
+ stable: false
+ filter: 'build/**'
+ target: 'deps'
+ do-not-fingerprint: true
+ - copyartifact:
+ project: babeltrace_{babeltrace_version}_{buildtype}/arch=${{arch}},conf=std,build=std
+ which-build: last-successful
+ stable: false
+ filter: 'build/**'
+ target: 'deps'
+ do-not-fingerprint: true
+
+ - shell:
+ !include-raw-escape:
+ - scripts/common/print.sh
+ - scripts/lttng-ust/build.sh
+ - shell:
+ !include-raw-escape:
+ - scripts/lttng-tools/gerrit-install-deps.sh
+ - shell:
+ !include-raw-escape:
+ - scripts/common/print.sh
+ - scripts/lttng-tools/build.sh
+
+## Templates
+- job-template:
+ name: lttng-ust_{version}_{buildtype}
+ defaults: lttng-ust
+
+ <<: *lttng-ust_build_axes_defaults
+ <<: *lttng-ust_build_builders_defaults