From 955b5d98bf920ee01df65fcfb8ce9999a4748c5c Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Thu, 28 Jan 2016 16:02:49 +0100
Subject: [PATCH] Added ccache volume mapping to Docker scripts.

---
 scripts/jenkins/clang.groovy | 2 +-
 scripts/jenkins/gcc.groovy   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/jenkins/clang.groovy b/scripts/jenkins/clang.groovy
index c8598d18118..c19857445ae 100644
--- a/scripts/jenkins/clang.groovy
+++ b/scripts/jenkins/clang.groovy
@@ -9,7 +9,7 @@ node('docker')
 
 	// Multiple configurations are build in parallel
 	parallel linux: {
-		docker.image('ogs6/clang-ogs-base:latest').inside
+		docker.image('ogs6/clang-ogs-base:latest').inside('-v /home/core/.ccache:/usr/src/.ccache')
 		{
 			catchError {
 				build 'build', '-DOGS_ADDRESS_SANITIZER=ON -DOGS_UNDEFINED_BEHAVIOR_SANITIZER=ON', ''
diff --git a/scripts/jenkins/gcc.groovy b/scripts/jenkins/gcc.groovy
index fe653775eea..49267b3787f 100644
--- a/scripts/jenkins/gcc.groovy
+++ b/scripts/jenkins/gcc.groovy
@@ -8,7 +8,7 @@ node('docker')
   	}
 
 	stage 'Build'
-	docker.image('ogs6/gcc-ogs-base:latest').inside {
+	docker.image('ogs6/gcc-ogs-base:latest').inside('-v /home/core/.ccache:/usr/src/.ccache') {
 		build 'build', '', 'package tests ctest'
 	}
 
-- 
GitLab