feat(nomad): add debian-12 cloud configuration 65/41565/1
authorDave Wallace <[email protected]>
Wed, 11 Sep 2024 19:58:14 +0000 (15:58 -0400)
committerDave Wallace <[email protected]>
Wed, 11 Sep 2024 19:58:14 +0000 (15:58 -0400)
Change-Id: Idad02b386091236a05abfc7a227a1dc4ac6b41a1
Signed-off-by: Dave Wallace <[email protected]>
jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-prod-x86_64-jobtemplate.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-prod-x86_64.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-sandbox-x86_64-jobtemplate.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-sandbox-x86_64.yaml [new file with mode: 0644]

diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-prod-x86_64-jobtemplate.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-prod-x86_64-jobtemplate.yaml
new file mode 100644 (file)
index 0000000..2112954
--- /dev/null
@@ -0,0 +1,18 @@
+---
+Job:
+  Constraints:
+    - LTarget: ^${attr.cpu.arch}
+      Operand: =
+      RTarget: amd64
+    - LTarget: ^${node.class}
+      Operand: =
+      RTarget: builder
+  TaskGroups:
+    - Name: jenkins-worker-taskgroup
+      Tasks:
+        - Name: jenkins-worker
+          Config:
+            image: fdiotools/builder-debian12:prod-x86_64
+            volumes:
+              - /tmp/ccache.debian12:/scratch/ccache
+              - /scratch/nomad:/scratch/nomad:ro
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-prod-x86_64.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-prod-x86_64.yaml
new file mode 100644 (file)
index 0000000..549f2c6
--- /dev/null
@@ -0,0 +1,4 @@
+---
+templates:
+  - prefix: "builder-debian12-prod-x86_64"
+    labels: "builder-debian12-prod-x86_64"
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-sandbox-x86_64-jobtemplate.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-sandbox-x86_64-jobtemplate.yaml
new file mode 100644 (file)
index 0000000..cb5dabc
--- /dev/null
@@ -0,0 +1,31 @@
+---
+Job:
+  Constraints:
+    - LTarget: ^${attr.cpu.arch}
+      Operand: =
+      RTarget: amd64
+    - LTarget: ^${node.class}
+      Operand: =
+      RTarget: builder
+  TaskGroups:
+    - Name: jenkins-worker-taskgroup
+      Tasks:
+        - Name: jenkins-worker
+          Config:
+            args:
+              - -cp
+              - /local/slave.jar
+              - hudson.remoting.jnlp.Main
+              - -headless
+              - -url
+              - https://jenkins.fd.io/sandbox
+              - -workDir
+              - /w/
+              - '%WORKER_SECRET%'
+              - '%WORKER_NAME%'
+            image: fdiotools/builder-debian12:sandbox-x86_64
+            volumes:
+              - /tmp/ccache.debian12:/scratch/ccache
+              - /scratch/nomad:/scratch/nomad:ro
+          Artifacts:
+            - GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-sandbox-x86_64.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/builder-debian12-sandbox-x86_64.yaml
new file mode 100644 (file)
index 0000000..5b342f7
--- /dev/null
@@ -0,0 +1,4 @@
+---
+templates:
+  - prefix: "builder-debian12-sandbox-x86_64"
+    labels: "builder-debian12-sandbox-x86_64"