Merge changes from topic "jjb-system_baremetal_crash"
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 7 Jun 2023 19:53:47 +0000 (15:53 -0400)
committerGerrit Code Review <review@lttng.org>
Wed, 7 Jun 2023 19:53:47 +0000 (15:53 -0400)
* changes:
  jjb: Add system test for linux-6.1.y
  jjb: Fix crash when trying to launch a job that is not defined

jobs/system-tests.yaml
scripts/system-tests/system-trigger.groovy

index 71b8e9acaf85c05e8015a61ab412349d014dad5b..80f5244e8058478423a606f514cc8cfb21f82c68 100644 (file)
       - linux-5.10.y
       - linux-5.15.y
       - linux-5.16.y
+      - linux-6.1.y
     lttngversion:
       - canary
       - master
index fd5b901cedd095e1bee178077128e243baaf021f..c4013daabdf73d3a9f50f656fd1505dd822a608d 100644 (file)
@@ -269,6 +269,10 @@ def CraftJobName = { jobType, linuxBranch, lttngBranch ->
 
 def LaunchJob = { jobName, jobInfo ->
   def job = Hudson.instance.getJob(jobName)
+  if (job == null) {
+    println(String.format("Failed to find job by name '%s'", jobName))
+    return null;
+  }
   def params = []
   for (paramdef in job.getProperty(ParametersDefinitionProperty.class).getParameterDefinitions()) {
     // If there is a default value for this parameter, use it. Don't use empty
@@ -451,7 +455,7 @@ while (ongoingJobs > 0) {
 
     // The isCancelled() method checks if the run was cancelled before
     // execution. We consider such run as being aborted.
-    if (jobBuild.isCancelled()) {
+    if (jobBuild == null || jobBuild.isCancelled()) {
       println("${jobName} was cancelled before launch.")
       isAborted = true;
       abortedRuns.add(jobName);
This page took 0.042446 seconds and 4 git commands to generate.