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

Change-Id: I87f689dc8f3f4275a5ca5a1bb34eea4112cd67f5
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/babeltrace-benchmark.yaml
scripts/babeltrace-benchmark/benchmark.sh

index c3c7d8549741931e98715427b641d1aea8ecc93c..309f5daf0c3ca919eb6a6a4296aa09f48b967edc 100644 (file)
@@ -27,6 +27,7 @@
 
     triggers:
       - timed: '@daily'
+
     builders:
       - shell:
           !include-raw: scripts/babeltrace-benchmark/benchmark.sh
       - archive:
           artifacts: 'results/**'
           allow-empty: false
-    scm:
-      - babeltrace
-      - lttng-ci
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
 
-- scm:
-    name: babeltrace
     scm:
       - git:
           url: https://github.com/efficios/babeltrace.git
           browser-url: https://github.com/efficios/babeltrace
           basedir: src/babeltrace
           skip-tag: true
-- scm:
-    name: lttng-ci
-    scm:
-      - git:
-          url: https://github.com/lttng/lttng-ci.git
-          browser: githubweb
-          browser-url: https://github.com/lttng/lttng-ci
-          basedir: src/lttng-ci
-          skip-tag: true
-
index 57a788f67d2af6561f6f50986bcde7a12be6e626..9a3256b313ad4b0227520094e80a7eb31cd80f20 100755 (executable)
@@ -29,6 +29,10 @@ TMPDIR="${VENV}/tmp"
 mkdir -p "$TMPDIR"
 export TMPDIR
 
+function checkout_scripts() {
+       git clone https://github.com/lttng/lttng-ci.git "$SCRIPT_DIR"
+}
+
 function setup_env ()
 {
        mkdir -p "$RESULTS_DIR"
@@ -50,6 +54,7 @@ function generate_report ()
        python "$SCRIPT_PATH" --generate-report --repo-path "$SRC_DIR" --report-name "${RESULTS_DIR}/babeltrace-benchmark.pdf"
 }
 
+checkout_scripts
 setup_env
 run_jobs
 generate_report
This page took 0.024337 seconds and 4 git commands to generate.