From d24dd30b8fdc718c830651e4d420917a83396d98 Mon Sep 17 00:00:00 2001
From: Dave Wallace <dwallacelf@gmail.com>
Date: Tue, 16 Apr 2024 11:52:34 -0400
Subject: Add HostStack Test nomad jenkins-config cloud configuration.

Change-Id: I5d95c1d02f0976a2ce875a904cb92ac5aa930371
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
---
 .../hst-ubuntu2204-prod-x86_64-jobtemplate.yaml    | 22 ++++++++++++++
 .../FDIONOMAD/hst-ubuntu2204-prod-x86_64.yaml      |  4 +++
 .../hst-ubuntu2204-sandbox-x86_64-jobtemplate.yaml | 34 ++++++++++++++++++++++
 .../FDIONOMAD/hst-ubuntu2204-sandbox-x86_64.yaml   |  4 +++
 4 files changed, 64 insertions(+)
 create mode 100644 jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64-jobtemplate.yaml
 create mode 100644 jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64.yaml
 create mode 100644 jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64-jobtemplate.yaml
 create mode 100644 jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64.yaml

(limited to 'jenkins-config/clouds')

diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64-jobtemplate.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64-jobtemplate.yaml
new file mode 100644
index 000000000..0e05b80e2
--- /dev/null
+++ b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64-jobtemplate.yaml
@@ -0,0 +1,22 @@
+---
+Job:
+  Constraints:
+    - LTarget: ^${attr.cpu.arch}
+      Operand: =
+      RTarget: amd64
+    - LTarget: ^${node.class}
+      Operand: =
+      RTarget: hst
+  TaskGroups:
+    - Name: jenkins-worker-taskgroup
+      Tasks:
+        - Name: jenkins-worker
+          Config:
+            image: fdiotools/builder-ubuntu2204:prod-x86_64
+            volumes:
+              - /tmp/ccache.ubuntu2204:/scratch/ccache
+              - /scratch/nomad:/scratch/nomad:ro
+          Resources:
+            # Limit scheduling of only 1 job per server by specifying > 3/4 of available CPU
+            CPU: 400000
+
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64.yaml
new file mode 100644
index 000000000..6fcb5554b
--- /dev/null
+++ b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64.yaml
@@ -0,0 +1,4 @@
+---
+templates:
+  - prefix: "hst-ubuntu2204-prod-x86_64"
+    labels: "hst-ubuntu2204-prod-x86_64"
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64-jobtemplate.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64-jobtemplate.yaml
new file mode 100644
index 000000000..a5172e38e
--- /dev/null
+++ b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64-jobtemplate.yaml
@@ -0,0 +1,34 @@
+---
+Job:
+  Constraints:
+    - LTarget: ^${attr.cpu.arch}
+      Operand: =
+      RTarget: amd64
+    - LTarget: ^${node.class}
+      Operand: =
+      RTarget: hst
+  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-ubuntu2204:sandbox-x86_64
+            volumes:
+              - /tmp/ccache.ubuntu2204:/scratch/ccache
+              - /scratch/nomad:/scratch/nomad:ro
+          Artifacts:
+            - GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar
+          Resources:
+            # Limit scheduling of only 1 job per server by specifying > 3/4 of available CPU
+            CPU: 400000
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64.yaml
new file mode 100644
index 000000000..68554a5d7
--- /dev/null
+++ b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-x86_64.yaml
@@ -0,0 +1,4 @@
+---
+templates:
+  - prefix: "hst-ubuntu2204-sandbox-x86_64"
+    labels: "hst-ubuntu2204-sandbox-x86_64"
-- 
cgit 1.2.3-korg