From 81056679410bb4d7836440ab7ad8032a3c11020c Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 6 Dec 2021 15:35:03 -0500 Subject: [PATCH] jjb: use urcu master targeting ust master Normally we would want to restrict ourselves to the urcu stable release here but currently lttng-tools master requires urcu master due to C++. So when targeting master default to using urcu master otherwise fall back to the one define in the jjb job definition. Signed-off-by: Jonathan Rajotte Change-Id: Ib5173b406a0a9c57ac409d5b60ea5073ebdd55de --- jobs/lttng-ust.yaml | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/jobs/lttng-ust.yaml b/jobs/lttng-ust.yaml index de4e753..742d44e 100644 --- a/jobs/lttng-ust.yaml +++ b/jobs/lttng-ust.yaml @@ -64,6 +64,26 @@ name: build values: '{obj:build}' +- lttng-ust_build_axes_gerrit_lttng-tools: <tng-ust_build_axes_gerrit_lttng-tools + name: 'lttng-ust_build_axes_gerrit_lttng-tools' + 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}' + - lttng-ust_build_builders_defaults: <tng-ust_build_builders_defaults name: 'lttng-ust_build_builders_defaults' builders: @@ -115,6 +135,25 @@ - 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' @@ -320,7 +359,7 @@ - branch-compare-type: 'ANT' branch-pattern: '**' - <<: *lttng-ust_build_axes_defaults + <<: *lttng-ust_build_axes_gerrit_lttng-tools <<: *lttng-ust_build_builders_gerrit_lttng-tools properties: @@ -670,7 +709,7 @@ arch: !!python/tuple [amd64] build: !!python/tuple [std, oot, dist, oot-dist] conf: !!python/tuple [std, agents] - liburcu_version: !!python/tuple [stable-0.13] + liburcu_version: 'stable-0.13' filter: '' babeltrace_version: stable-2.0 -- 2.34.1