Fix: Correct node defaults and sandbox nodes
[ci-management.git] / jenkins-config / clouds / nomad / FDIONOMAD / m-builder-ubuntu2204-sandbox-x86_64-jobtemplate.yaml
index bfabba6..10b0aca 100644 (file)
@@ -12,6 +12,17 @@ Job:
       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
@@ -19,3 +30,5 @@ Job:
           Resources:
             CPU: 8000
             MemoryMB: 8192
+          Artifacts:
+            - GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar