metal3: Add bmo e2e upgrade job 87/20387/5
authorHuy Mai <huy.mai@est.tech>
Tue, 16 Jan 2024 12:16:25 +0000 (14:16 +0200)
committerHuy Mai <huy.mai@est.tech>
Wed, 17 Jan 2024 12:18:24 +0000 (14:18 +0200)
Signed-off-by: Huy Mai <huy.mai@est.tech>
Change-Id: I492a531c9def96b3ab89dbb33e68c8497db4d3e8

jjb/metal3/baremetal-operator/jjb-bmo-e2e.yaml

index 47531443a5b177e0c92a35fc4b4ff49a3cb4ebd8..154f2b1ad59cee087653fdc3f8b0628b1d87fa66 100644 (file)
@@ -1,8 +1,9 @@
 - project:
     name: bmo
-    # Default "type" of job is "pull", as in pull request
-    # and the default trigger is then also for PR comments.
+    # 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
     type: pull
+    GINKGO_FOCUS: " "
     triggers:
     # Trigger the job based on comments on a GH pull request.
     - github-pull-request:
 
     jobs:
     - "{job_prefix}-{name}-e2e-test-{type}"
+    # This job runs the "optional" set, which currently includes only "upgrade" tests
+    - "{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:
         name: PULL_PULL_SHA
         description: 'Pull request head SHA'
     # End of Prow parameters
+    - string:
+        name: GINKGO_FOCUS
+        default: '{GINKGO_FOCUS}'
+        description: 'The focus test to run'
 
     properties:
     - build-discarder: