Remove outdated integration tests and openstack image building
[infra/cicd.git] / jjb / metal3 / baremetal-operator / jjb-bmo-e2e.yaml
index 154f2b1ad59cee087653fdc3f8b0628b1d87fa66..96a6b7eee06e0a7c5c635cedae5059a649cb9ea5 100644 (file)
@@ -1,31 +1,13 @@
 - project:
     name: bmo
-    # Default "type" of job is "pull", as in pull request with the default set (all tests required in BMO PRs) the default trigger is then also for PR comments,
-    # and the default GINKGO_FOCUS is empty
+    # Default "type" of job is "pull", as in pull request,
+    # and the default GINKGO_FOCUS is empty (all tests required in BMO PRs)
     type: pull
     GINKGO_FOCUS: " "
-    triggers:
-    # Trigger the job based on comments on a GH pull request.
-    - github-pull-request:
-        admin-list:
-        - "{ci_github_admin_user}"
-        org-list: "{ci_github_whitelist_org}"
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/{job_prefix}-{name}-e2e-test(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-        - 'main'
-        - 'release-0.5'
-        status-context: "{job_prefix}-{name}-e2e-test"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
+    # 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: []
 
     jobs:
     - "{job_prefix}-{name}-e2e-test-{type}"
     - "{job_prefix}-{name}-e2e-test-{type}":
         type: optional-pull
         GINKGO_FOCUS: "upgrade"
-        triggers:
-        - github-pull-request:
-            admin-list:
-            - "{ci_github_admin_user}"
-            org-list: "{ci_github_whitelist_org}"
-            auth-id: "{ci_ghprb_auth_id}"
-            trigger-phrase: '((.|\n)*\s)?/{job_prefix}-{name}-e2e-optional-test(\s(.|\n)*)?'
-            skip-build-phrase: '/skip-test'
-            only-trigger-phrase: True
-            github-hooks: True
-            permit-all: False
-            auto-close-on-fail: False
-            allow-whitelist-orgs-as-admins: True
-            white-list-target-branches:
-            - 'main'
-            - 'release-0.5'
-            status-context: "{job_prefix}-{name}-e2e-optional-test"
-            success-status: "Passed"
-            failure-status: "Failed"
-            error-status: "Error"
-            cancel-builds-on-update: True
     - "{job_prefix}-{name}-e2e-test-{type}":
         type: periodic
         triggers:
         # Run at 02:45 (UTC) every day
         - timed: "45 2 * * *"
+    - "{job_prefix}-{name}-e2e-test-{type}":
+        type: optional-periodic
+        GINKGO_FOCUS: "upgrade"
+        triggers:
+        # Run at 03:45 (UTC) every day
+        - timed: "45 3 * * *"
+
+    # Pediodic jobs for release-0.6 branch
+    - "{job_prefix}-{name}-e2e-test-{type}":
+        type: periodic-release-0.6
+        BRANCH_NAME: "release-0.6"
+        triggers:
+        # Run at 01:45 (UTC) every day
+        - timed: "45 1 * * *"
+    - "{job_prefix}-{name}-e2e-test-{type}":
+        type: optional-periodic-release-0.6
+        BRANCH_NAME: "release-0.6"
+        GINKGO_FOCUS: "upgrade"
+        triggers:
+        # Run at 01:45 (UTC) every day
+        - timed: "45 1 * * *"
 
 - job-template:
     name: "{job_prefix}-{name}-e2e-test-{type}"
@@ -83,7 +65,7 @@
         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