Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
borderColor#3572b0
borderWidth3


Scalable Build Farm helps to spawn any required number of Jenkins slaves as required and execute many Slaves and enables execution of multiple jobs in parallel.

  1. Install Jenkins  2.32.1 (
kube
  1. Kube plugin requires this version of Jenkins)
  2. Install Kubernetes plugin
  3. Configure "Kube Cloud" in Manage Jenkins → configure system


Docker image : gcr.io/cloud-solutions-images/jenkins-k8s-slave

Arguments: ${computer.jnlpmac} ${computer.name}

Note: Name of Kubernetes Pod Template and Name of Container Template should be "jnlp"

Choose TCP port for JNLP agents as "Random" since slaves are spawned in Kube slaves and port will be randomly generated if many number of jobs are executed at the same time.


Sample Output:

Below screen shows The below screenshot shows execution of 5 jobs are executing in parallel without being in queuequeued.

Note: Executors in the Master will be are unused. Jenkins slaves are spawnedin Kube Slaves on-demand in Kube Slaves and  and the jobs are executed.