Skip to content

Commit

Permalink
Add HostStack Test nomad jenkins-config cloud configuration.
Browse files Browse the repository at this point in the history
Change-Id: I5d95c1d02f0976a2ce875a904cb92ac5aa930371
Signed-off-by: Dave Wallace <[email protected]>
  • Loading branch information
dwallacelf committed Apr 16, 2024
1 parent 00753ac commit d24dd30
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
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

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
templates:
- prefix: "hst-ubuntu2204-prod-x86_64"
labels: "hst-ubuntu2204-prod-x86_64"
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
templates:
- prefix: "hst-ubuntu2204-sandbox-x86_64"
labels: "hst-ubuntu2204-sandbox-x86_64"

0 comments on commit d24dd30

Please sign in to comment.