jjb: replace usage of `defaults` by `job-template`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 7 Apr 2020 19:32:27 +0000 (15:32 -0400)
committerJonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
Wed, 8 Apr 2020 21:31:57 +0000 (17:31 -0400)
This seems more appropriate and allows for usage of parameters such as
`lttngversion`. We will use `lttngversion` in a following commit.

This change also renames the canary jobs are renamed such as
`vm_tests_canary` -> `vm_tests_kcanary_lcanary`. I did that to
simply the templates.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
jobs/system-tests.yaml
scripts/system-tests/system-trigger.groovy

index 6ed638219288a813b87f823cd8a78eee61f7e859..b42c1399e13be9d77e66b3d7542913e6b855b9d4 100644 (file)
@@ -62,9 +62,9 @@
           send-to:
             - recipients
 
-## Defaults
-- defaults:
-    name: baremetal_benchmarks
+## Templates
+- job-template:
+    name: baremetal_benchmarks_k{kversion}_l{lttngversion}
     description: |
       Runs baremetal kernel benchmarks over different combination of kernel and lttng configurations.
     project-type: freestyle
           includes: '*.png'
       - workspace-cleanup
 
-- defaults:
-    name: vm_tests
+- job-template:
+    name: vm_tests_k{kversion}_l{lttngversion}
     description: |
       Runs root_regression and root_destructive_tests on a virtual machine over different combinations of kernel and lttng configurations.
     project-type: freestyle
     publishers:
       - workspace-cleanup
 
-- defaults:
-    name: baremetal_tests
+- job-template:
+    name: baremetal_tests_k{kversion}_l{lttngversion}
     description: |
       Runs perf_regression tests on a baremetal machine over different combinations of kernel and lttng configurations.
     project-type: freestyle
     publishers:
       - workspace-cleanup
 
-## Templates
 - job-template:
     name: build_kernel_PARAM
     description: |
     publishers:
       - system_tests_email_ext_default
 
-- job-template:
-    name: baremetal_benchmarks_k{kversion}_l{lttngversion}
-    defaults: baremetal_benchmarks
-- job-template:
-    name: vm_tests_k{kversion}_l{lttngversion}
-    defaults: vm_tests
-- job-template:
-    name: baremetal_tests_k{kversion}_l{lttngversion}
-    defaults: baremetal_tests
+## Project
 
 # Canary jobs are made to confirm that the whole Lava pipeline is working.
 # They are scheduled once a day always on the same (LTTng, Kernel) code. If any
 # of those jobs fails, it means that there is an issue with the configuration
-- job-template:
-    name: baremetal_benchmarks_canary
-    defaults: baremetal_benchmarks
-
-- job-template:
-    name: baremetal_tests_canary
-    defaults: baremetal_tests
 
-- job-template:
-    name: vm_tests_canary
-    defaults: vm_tests
-
-## Project
 - project:
     name: system-tests
     kversion:
+      - canary
       - master
       - linux-4.4.y
       - linux-4.9.y
       - linux-5.0.y
       - linux-5.1.y
     lttngversion:
+      - canary
       - master
       - stable-2.9
       - stable-2.10
     jobs:
       - 'vm_tests_k{kversion}_l{lttngversion}'
 
-- project:
-    name: system-tests-canary
-    jobs:
-      - 'vm_tests_canary'
-      - 'baremetal_tests_canary'
-      - 'baremetal_benchmarks_canary'
-
 - project:
     name: system-general
     test_type:
index a4e4165b32daf63410bd9ae1f54b11cf1cd564c2..0fedc26fe095347b242383d92044217e7edc3745 100644 (file)
@@ -385,7 +385,7 @@ configurationOfInterest.each { lttngBr, linuxBr  ->
 }
 
 //Add canary job
-def jobNameCanary = jobType + "_canary";
+def jobNameCanary = jobType + "_kcanary_lcanary";
 currentJobs[jobNameCanary] = [:];
 currentJobs[jobNameCanary]['config'] = [:];
 currentJobs[jobNameCanary]['config']['linuxBranch'] = 'v4.4.194';
@@ -408,7 +408,7 @@ def ongoingJobs = 0;
 currentJobs.each { jobName, jobInfo ->
   // If the job ran in the past, we check if the IDs changed since.
   // Fetch past results only if the job is not of type canary.
-  if (!jobName.contains('_canary') && pastJobs.containsKey(jobName) &&
+  if (!jobName.contains('_kcanary_lcanary') && pastJobs.containsKey(jobName) &&
          build.getBuildVariables().get('FORCE_JOB_RUN') == 'false') {
     pastJob = pastJobs[jobName];
 
This page took 0.025625 seconds and 4 git commands to generate.