--- /dev/null
+---
+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
+
--- /dev/null
+---
+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