jjb: system-tests: deprecate Multi-SCM plugin
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 11 Jul 2022 21:36:41 +0000 (17:36 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 11 Jul 2022 21:38:16 +0000 (17:38 -0400)
The Multi-SCM plugin is deprecated and breaks recent Jenkins job
configuration UI. Replace its use by scripts.

Change-Id: I378076811cf1b448d3bbed466b950bee4b8e0046
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/system-tests.yaml
scripts/system-tests/checkout-modules.sh [new file with mode: 0755]

index 4eeded83b2171784e6b684d3e5a2811bb660b3db..ee48c82a172cedaa2b461b5534dfa8a81439f65a 100644 (file)
       - git:
           url: https://github.com/lttng/lttng-ci
           basedir: src/lttng-ci/
-      - git:
-          url : $LTTNG_MODULES_REPO
-          basedir: src/lttng-modules/
-          branches:
-            - $LTTNG_MODULES_COMMIT_ID
 
     builders:
+      - shell: !include-raw-escape: scripts/system-tests/checkout-modules.sh
       - shell: !include-raw-escape: scripts/system-tests/generate-properties-slave.sh
       - inject:
           properties-file: properties.txt
diff --git a/scripts/system-tests/checkout-modules.sh b/scripts/system-tests/checkout-modules.sh
new file mode 100755 (executable)
index 0000000..9a8442b
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# Copyright (C) 2022 Michael Jeanson <mjeanson@efficios.com>
+#
+# 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 <http://www.gnu.org/licenses/>.
+
+set -exu
+
+git clone "$LTTNG_MODULES_REPO" src/lttng-modules && \
+       cd src/lttng-modules && \
+       git reset --hard "$LTTNG_MODULES_COMMIT_ID"
This page took 0.027304 seconds and 4 git commands to generate.