CPS performance plots start at 0
[infra/cicd.git] / jjb / metal3 / baremetal-operator / jjb-bmo-e2e.yaml
index 02b203cf16c1baf16f84d417df932efa4fcd659d..101cb76dfaf571471c2826ea076828db8a75fc59 100644 (file)
@@ -4,6 +4,8 @@
     # and the default GINKGO_FOCUS is empty (all tests required in BMO PRs)
     type: pull
     GINKGO_FOCUS: " "
+    # Default BMO branch to trigger the test in is "main"
+    BRANCH_NAME: "main"
     # These jobs are triggered by prow for PRs (empty trigger here) or by timer (see below)
     triggers: []
 
         # Run at 03:45 (UTC) every day
         - timed: "45 3 * * *"
 
+    # Pediodic jobs for release branches
+    - "{job_prefix}-{name}-e2e-test-{type}":
+        type: periodic-release-0.6
+        BRANCH_NAME: "release-0.6"
+        triggers:
+        # Run at 01:45 (UTC) every odd day
+        - timed: "45 1 1-31/2 * *"
+    - "{job_prefix}-{name}-e2e-test-{type}":
+        type: periodic-release-0.5
+        BRANCH_NAME: "release-0.5"
+        triggers:
+        # Run at 01:45 (UTC) every even day
+        - timed: "45 1 2-30/2 * *"
+
 - job-template:
     name: "{job_prefix}-{name}-e2e-test-{type}"
     project-type: pipeline
         description: 'Project github repo name'
     - string:
         name: PULL_BASE_REF
-        default: 'main'
+        default: '{BRANCH_NAME}'
         description: 'Ref name of the base branch'
     - string:
         name: PULL_PULL_SHA
+        default: '{BRANCH_NAME}' # Default set to branch name. This is needed when running periodic jobs
         description: 'Pull request head SHA'
     # End of Prow parameters
     - string: