You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2023/04/27 22:34:16 UTC

[comdev-events-site] branch preview/sample updated: Oops need the parent dir

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

sebb pushed a commit to branch preview/sample
in repository https://gitbox.apache.org/repos/asf/comdev-events-site.git


The following commit(s) were added to refs/heads/preview/sample by this push:
     new 063bd6d  Oops need the parent dir
063bd6d is described below

commit 063bd6dd3996dba68c43c83e4b9270252721054e
Author: Sebb <se...@apache.org>
AuthorDate: Thu Apr 27 23:34:09 2023 +0100

    Oops need the parent dir
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 455f3bd..0eccaf6 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -36,7 +36,7 @@ pipeline {
                 script {
                     // Capture last commit hash for final commit message
                     env.LAST_SHA = sh(script:'git log -n 1 --pretty=format:\'%H\'', returnStdout: true).trim()
-                    env.HUGO_DIR = sh(script:'which hugo', returnStdout: true).trim()
+                    env.HUGO_DIR = sh(script:'dirname `which hugo`', returnStdout: true).trim()
                     sh "echo Hugo path: '${env.HUGO_DIR}'"
                     // Get current Hugo version (looks like hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192+extended linux/amd64 ...)
                     // Use the location found above to ensure same hugo can be used later