From 0d690b6963edf3e1f6c97000790fa76eec770af2 Mon Sep 17 00:00:00 2001 From: George Adams Date: Fri, 15 Jun 2018 10:34:11 +0100 Subject: [PATCH] add ccache to jenkins_path for macOS --- ansible/roles/jenkins-worker/templates/start.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/jenkins-worker/templates/start.j2 b/ansible/roles/jenkins-worker/templates/start.j2 index 2be2d18cf..c4f4c1ebe 100644 --- a/ansible/roles/jenkins-worker/templates/start.j2 +++ b/ansible/roles/jenkins-worker/templates/start.j2 @@ -6,7 +6,8 @@ export JOBS="{{ jobs_env }}" export OSTYPE=osx export ARCH=x64 export DESTCPU=x64 +export JENKINS_PATH="/usr/localopt/ccache/libexec:$PATH" -{{ java_path[os] }} -Xmx{{ server_ram|default('128m') }} \ +PATH="$JENKINS_PATH" {{ java_path[os] }} -Xmx{{ server_ram|default('128m') }} \ -jar {{ home }}/{{ server_user }}/slave.jar -secret {{ secret }} \ -jnlpUrl {{ jenkins_url }}/computer/{{ inventory_hostname }}/slave-agent.jnlp