Skip to content

Commit

Permalink
feat(nomad): add debian-12 cloud configuration
Browse files Browse the repository at this point in the history
Change-Id: Idad02b386091236a05abfc7a227a1dc4ac6b41a1
Signed-off-by: Dave Wallace <[email protected]>
  • Loading branch information
dwallacelf committed Sep 11, 2024
1 parent 0baab0c commit 96ae1af
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
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:
image: fdiotools/builder-debian12:prod-x86_64
volumes:
- /tmp/ccache.debian12:/scratch/ccache
- /scratch/nomad:/scratch/nomad:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
templates:
- prefix: "builder-debian12-prod-x86_64"
labels: "builder-debian12-prod-x86_64"
Original file line number Diff line number Diff line change
@@ -0,0 +1,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-debian12:sandbox-x86_64
volumes:
- /tmp/ccache.debian12:/scratch/ccache
- /scratch/nomad:/scratch/nomad:ro
Artifacts:
- GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
templates:
- prefix: "builder-debian12-sandbox-x86_64"
labels: "builder-debian12-sandbox-x86_64"

0 comments on commit 96ae1af

Please sign in to comment.