Fix: Correct Jenkins URLs for sandbox nodes
[ci-management.git] / jenkins-config / clouds / nomad / FDIONOMAD / builder-debian11-sandbox-x86_64-jobtemplate.yaml
index f41b11e..c0f8b61 100644 (file)
@@ -12,7 +12,20 @@ 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-debian11:sandbox-x86_64
             volumes:
               - /tmp/ccache.debian11:/scratch/ccache
               - /scratch/nomad:/scratch/nomad:ro
+          Artifacts:
+            - GetterSource: https://jenkins.fd.io/sandbox/jnlpJars/slave.jar