summaryrefslogtreecommitdiffstats
path: root/jenkins-config/clouds/nomad/FDIONOMAD/hst-ubuntu2204-prod-x86_64-jobtemplate.yaml
blob: 817f0298195ea058eba881c9d5e1ddeab18ca454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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-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 max cpushares and more than half memory
            CPU: 262144
            MemoryMB: 128000