]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pr-api: Split out squid-specific job 2594/head
authorDavid Galloway <david.galloway@ibm.com>
Wed, 27 May 2026 17:34:29 +0000 (13:34 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Wed, 27 May 2026 17:37:57 +0000 (13:37 -0400)
The Squid branch still requires python3.10 in order to build.  Most of our builders are running Ubuntu Noble now which does not have python3.10.

So run ceph API tests for Squid-targeted PRs on installed-os-jammy and all others on installed-os-noble.

The job names were chosen to keep the existing naming scheme for non-squid jobs (e.g., https://jenkins.ceph.com/job/ceph-api vs. https://jenkins.ceph.com/job/ceph-api-squid)

Signed-off-by: David Galloway <david.galloway@ibm.com>
ceph-pr-api/config/definitions/ceph-pr-api.yml

index 1cc89294d0fe11a8849425eb65ff02b4b5ed21a9..dfca61988bf3917f09922e8b61e5e1eb0abea2c3 100644 (file)
@@ -1,9 +1,9 @@
-- job:
-    name: ceph-api
+- job-template:
+    name: '{job_name}'
     project-type: freestyle
     defaults: global
     concurrent: true
-    node: huge && installed-os-noble && x86_64 && !smithi
+    node: "huge && {os_label} && x86_64 && !smithi"
     display-name: 'ceph: API'
     quiet-period: 5
     block-downstream: false
           allow-whitelist-orgs-as-admins: true
           org-list:
             - ceph
-          white-list-target-branches:
-            - main
-            - umbrella
-            - tentacle
-            - squid
-            - reef
-            - "feature-.*"
+          white-list-target-branches: '{obj:target_branches}'
           trigger-phrase: 'jenkins test api'
           skip-build-phrase: '^jenkins do not test.*'
           only-trigger-phrase: false
               credential-id: github-readonly-token
               username: GITHUB_USER
               password: GITHUB_PASS
+
+- project:
+    name: ceph-api-project
+    jobs:
+      - '{job_name}'
+    job_name:
+      - ceph-api:
+          os_label: installed-os-noble
+          target_branches:
+            - main
+            - umbrella
+            - tentacle
+            - "feature-.*"
+      - ceph-api-squid:
+          os_label: installed-os-jammy
+          target_branches:
+            - squid