{%- if environment == "production" -%}
{%- set number_of_processes = grains.num_cpus * 4 -%}
{%- else -%}
{%- set number_of_processes = 2 -%}
{%- endif -%}
<?xml version='1.0' encoding='UTF-8'?>
<hudson>
  <numExecutors>{{ number_of_processes }}</numExecutors>
</hudson>
{%- if salt['grains.get']('role', '') in ["spryker_app","spryker_single_host"] -%}
{%-   set number_of_processes = grains.num_cpus * 4 -%}
{%- else -%}
{%-   set number_of_processes = 8 -%}
{%- endif -%}
<?xml version='1.0' encoding='UTF-8'?>
<hudson>
  <numExecutors>{{ number_of_processes }}</numExecutors>
</hudson>

Increase number of Jenkins executors
Increase number of Jenkins executors
