hst: create the HST Jenkins label for ubuntu2204 aarch64 74/42474/2
authorNaveen Joy <[email protected]>
Wed, 12 Mar 2025 23:57:13 +0000 (16:57 -0700)
committerNaveen Joy <[email protected]>
Fri, 14 Mar 2025 18:12:01 +0000 (11:12 -0700)
Change-Id: Icc3ae4e4ac3022601ce927c7af7c406a622e125b
Signed-off-by: Naveen Joy <[email protected]>
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-aarch64-jobtemplate.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-aarch64.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-aarch64-jobtemplate.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-aarch64.yaml [new file with mode: 0644]

diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-aarch64-jobtemplate.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-aarch64-jobtemplate.yaml
new file mode 100644 (file)
index 0000000..9d099ad
--- /dev/null
@@ -0,0 +1,23 @@
+---
+Job:
+  Constraints:
+    - LTarget: ^${attr.cpu.arch}
+      Operand: =
+      RTarget: arm64
+    - LTarget: ^${node.class}
+      Operand: =
+      RTarget: hst
+  TaskGroups:
+    - Name: jenkins-worker-taskgroup
+      Tasks:
+        - Name: jenkins-worker
+          Config:
+            image: fdiotools/builder-ubuntu2204:prod-aarch64
+            volumes:
+              - /tmp/ccache.ubuntu2204:/scratch/ccache
+              - /scratch/nomad:/scratch/nomad:ro
+          Resources:
+            # Limit scheduling of only 1 job per server by specifying max cpushares and more than half memory
+            CPU: 262144
+            MemoryMB: 384000
+
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-aarch64.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-aarch64.yaml
new file mode 100644 (file)
index 0000000..e0e05b4
--- /dev/null
@@ -0,0 +1,4 @@
+---
+templates:
+  - prefix: "hst-ubuntu2204-prod-aarch64"
+    labels: "hst-ubuntu2204-prod-aarch64"
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-aarch64-jobtemplate.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-aarch64-jobtemplate.yaml
new file mode 100644 (file)
index 0000000..721beb1
--- /dev/null
@@ -0,0 +1,35 @@
+---
+Job:
+  Constraints:
+    - LTarget: ^${attr.cpu.arch}
+      Operand: =
+      RTarget: arm64
+    - 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-aarch64
+            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 max cpushares and more than half memory
+            CPU: 262144
+            MemoryMB: 384000
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-aarch64.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-sandbox-aarch64.yaml
new file mode 100644 (file)
index 0000000..a0c193e
--- /dev/null
@@ -0,0 +1,4 @@
+---
+templates:
+  - prefix: "hst-ubuntu2204-sandbox-aarch64"
+    labels: "hst-ubuntu2204-sandbox-aarch64"