jjb: lttng-modules: refactor triggers
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 6 Sep 2023 19:23:09 +0000 (15:23 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 6 Sep 2023 19:40:48 +0000 (15:40 -0400)
Refactor triggers for lttng-modules kernel buils.

'(cross)build-vanilla':
  - hourly check for lttng-modules commits
  - daily (22:00) check for new kernel tags

'fullbuild-vanilla':
  - friday at midnight check for lttng-modules commits

'build-{UBUNTU}':
  - hourly check for lttng-modules commits
  - saturday at midnight check for new ubuntu kernel tags

'build-rt':
  - hourly check for lttng-modules commits
  - sunday at midnight check for new rt kernel tags

Change-Id: I9b827d926f89c81f49e6689b3c12f9688ae7ede4
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/lttng-modules.yaml

index cc77abbc7d1f82f84b0a4ab2354b5afb150c9b70..49cdc296268ea364476154170de505fd39339e19 100644 (file)
     scm: []
 
     triggers:
-      - timed: "@hourly"
+      # Check for new kernel tags everay day at 22:00
+      - timed: "0 22 * * *"
 
     builders:
       - system-groovy:
 
     node: 'master'
 
+    triggers:
+      # Check for new commits every hour
+      - pollscm:
+          cron: "@hourly"
+
     <<: *lttng-modules_build_parameters_defaults
     <<: *lttng-modules_build_builders_defaults
 
 
     node: 'master'
 
+    # This is a test job, no triggers
+    triggers: []
+
     parameters:
       - string:
           name: 'maxConcurrentBuild'
     <<: *lttng-modules_build_builders_defaults
 
     triggers:
+      # Check for new commits every friday at midnight
       - pollscm:
-          cron: "@midnight"
+          cron: "0 0 * * 5"
 
 - job-template:
     name: lttng-modules_{mversion}_{buildtype}-{uversion}
 
     node: 'master'
 
+    triggers:
+      # Check for new commits every hour
+      - pollscm:
+          cron: "@hourly"
+      # Also run every saturday at midnight to catch new ubuntu kernel tags
+      - timed: "0 0 * * 6"
+
     <<: *lttng-modules_build_parameters_ubuntu
     <<: *lttng-modules_build_builders_defaults
 
 
     node: 'master'
 
+    triggers:
+      # Check for new commits every hour
+      - pollscm:
+          cron: "@hourly"
+      # Also run every sunday at midnight to catch new rt kernel tags
+      - timed: "0 0 * * 7"
+
     <<: *lttng-modules_build_parameters_rt
     <<: *lttng-modules_build_rt_builders_defaults
 
This page took 0.02396 seconds and 4 git commands to generate.