hst: create the HST Jenkins label for ubuntu2404 x86_64 73/42473/1
authorNaveen Joy <[email protected]>
Wed, 12 Mar 2025 23:35:54 +0000 (16:35 -0700)
committerNaveen Joy <[email protected]>
Wed, 12 Mar 2025 23:35:54 +0000 (16:35 -0700)
Change-Id: I6082abe42bfb89364006b44c59f73be3380abf3a
Signed-off-by: Naveen Joy <[email protected]>
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-prod-x86_64-jobtemplate.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-prod-x86_64.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-sandbox-x86_64-jobtemplate.yaml [new file with mode: 0644]
jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-sandbox-x86_64.yaml [new file with mode: 0644]

diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-prod-x86_64-jobtemplate.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-prod-x86_64-jobtemplate.yaml
new file mode 100644 (file)
index 0000000..dfa3489
--- /dev/null
@@ -0,0 +1,23 @@
+---
+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-ubuntu2404:prod-x86_64
+            volumes:
+              - /tmp/ccache.ubuntu2404:/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: 128000
+
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-prod-x86_64.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-prod-x86_64.yaml
new file mode 100644 (file)
index 0000000..66e9829
--- /dev/null
@@ -0,0 +1,4 @@
+---
+templates:
+  - prefix: "hst-ubuntu2404-prod-x86_64"
+    labels: "hst-ubuntu2404-prod-x86_64"
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-sandbox-x86_64-jobtemplate.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-sandbox-x86_64-jobtemplate.yaml
new file mode 100644 (file)
index 0000000..268700a
--- /dev/null
@@ -0,0 +1,35 @@
+---
+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-ubuntu2404:sandbox-x86_64
+            volumes:
+              - /tmp/ccache.ubuntu2404:/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: 128000
diff --git a/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-sandbox-x86_64.yaml b/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2404-sandbox-x86_64.yaml
new file mode 100644 (file)
index 0000000..d2ed3d6
--- /dev/null
@@ -0,0 +1,4 @@
+---
+templates:
+  - prefix: "hst-ubuntu2404-sandbox-x86_64"
+    labels: "hst-ubuntu2404-sandbox-x86_64"