blob: 5355c6118791e1d2c78842911672d73e19706eca (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
---
Job:
ID: '%WORKER_NAME%'
Name: '%WORKER_NAME%'
Region: global
Type: batch
Priority: 50
Datacenters:
- yul1
Constraints:
- LTarget: ^${attr.cpu.arch}
Operand: =
RTarget: arm64
- LTarget: ^${node.class}
Operand: =
RTarget: builder
TaskGroups:
- Name: jenkins-worker-taskgroup
Count: 1
Tasks:
- Name: jenkins-worker
Driver: docker
Config:
args:
- -cp
- /local/slave.jar
- hudson.remoting.jnlp.Main
- -headless
- -url
- https://jenkins.fd.io
- -workDir
- /w/
- '%WORKER_SECRET%'
- '%WORKER_NAME%'
privileged: true
image: fdiotools/builder-ubuntu2204:prod-aarch64
auth:
- password: hidden
username: fdionomad
network_mode: bridge
volumes:
- /tmp/ccache.ubuntu2204:/scratch/ccache
- /scratch/nomad:/scratch/nomad:ro
command: java
force_pull: true
Resources:
CPU: 24000
MemoryMB: 24000
Networks:
- MBits: 1
ReservedPorts: []
Devices: []
LogConfig:
MaxFiles: 1
MaxFileSizeMB: 10
Artifacts:
- GetterSource: https://jenkins.fd.io/jnlpJars/slave.jar
RestartPolicy:
Interval: 10000000000
Mode: fail
Delay: 1000000000
Attempts: 0
EphemeralDisk:
SizeMB: 3000
Migrate: false
Sticky: false
|