From: Michael Jeanson Date: Mon, 11 Jul 2022 20:56:46 +0000 (-0400) Subject: jjb: lttng-ust: deprecate Multi-SCM plugin X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b6f44444d01642e3227b4e95a6b6e65aa129ef1b;p=lttng-ci.git jjb: lttng-ust: deprecate Multi-SCM plugin The Multi-SCM plugin is deprecated and breaks recent Jenkins job configuration UI. Replace its use by scripts. Change-Id: I712af4b8ccb394d16397c4fda7f8bf1768369ca3 Signed-off-by: Michael Jeanson --- diff --git a/jobs/lttng-ust.yaml b/jobs/lttng-ust.yaml index 4245c6b..7980737 100644 --- a/jobs/lttng-ust.yaml +++ b/jobs/lttng-ust.yaml @@ -202,6 +202,9 @@ target: 'deps' do-not-fingerprint: true + - shell: + !include-raw-escape: + - scripts/lttng-ust/gerrit-checkout-tools.sh - shell: !include-raw-escape: - scripts/common/print.sh @@ -351,12 +354,6 @@ - '$GERRIT_REFSPEC' basedir: src/lttng-ust skip-tag: true - - git: - url: https://review.lttng.org/lttng-tools - branches: - - '$GERRIT_BRANCH' - basedir: src/lttng-tools - skip-tag: true triggers: - gerrit: diff --git a/scripts/lttng-ust/gerrit-checkout-tools.sh b/scripts/lttng-ust/gerrit-checkout-tools.sh new file mode 100755 index 0000000..076aa48 --- /dev/null +++ b/scripts/lttng-ust/gerrit-checkout-tools.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +# Copyright (C) 2022 Michael Jeanson +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +set -exu + +# Required variables +WORKSPACE=${WORKSPACE:-} + +git clone -b "$GERRIT_BRANCH" https://review.lttng.org/lttng-tools src/lttng-tools