From 9512b850fba22e394df854adc1be6b385d4cd488 Mon Sep 17 00:00:00 2001 From: denes Date: Wed, 3 Jul 2019 17:57:10 +0200 Subject: [PATCH] Jenkinsfile hugo cache dir needs to be absolute + hugo --verbose --cacheDir=./hugo_cache Error: failed to create file caches from configuration: "hugo_cache/.matetelki.eu_properhorse_master" must resolve to an absolute directory --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9362372..b9d9c48 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { stages { stage('Generate page with Hugo') { steps { - sh 'hugo --verbose --cacheDir=./hugo_cache' + sh 'hugo --verbose --cacheDir=${WORKSPACE}/hugo_cache' archiveArtifacts artifacts: 'public/**/*.*', fingerprint: true } }