This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch jenkins-pipeline
in repository https://gitbox.apache.org/repos/asf/camel.git

commit e67abb1abee3c390aa77eab54e36e33e37861098
Author: Zoran Regvart <zregv...@apache.org>
AuthorDate: Mon Feb 19 10:23:46 2018 +0100

    CAMEL-11930: cache checkstyle cache
    
    This caches checkstyle cache file between builds in order to speed up
    the Checks stage.
---
 Jenkinsfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 36f92dd..ca6112a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -39,7 +39,9 @@ pipeline {
 
         stage('Checks') {
             steps {
-                sh "./mvnw $MAVEN_PARAMS -Psourcecheck checkstyle:check"
+                cache(path: env.WORKSPACE, includes: 
'**/target/checkstyle-cachefile') {
+                  sh "./mvnw $MAVEN_PARAMS -Psourcecheck checkstyle:check"
+                }
             }
             post {
                 always {

-- 
To stop receiving notification emails like this one, please contact
zregv...@apache.org.

Reply via email to