summaryrefslogtreecommitdiffstats
path: root/jenkins-config/clouds/nomad/FDIONOMAD/builder-ubuntu2004-sandbox-x86_64-jobtemplate.yaml
blob: f50d367d34adbbbacdaf1307640f4429d3791e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
Job:
  Constraints:
    - LTarget: ^${attr.cpu.arch}
      Operand: =
      RTarget: amd64
    - LTarget: ^${node.class}
      Operand: =
      RTarget: builder
  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-ubuntu2004:sandbox-x86_64
            volumes:
              - /tmp/ccache.ubuntu2004:/scratch/ccache
              - /scratch/nomad:/scratch/nomad:ro
          Artifacts:
            - GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar