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

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


The following commit(s) were added to refs/heads/master by this push:
     new af37eda  fix: build deployment
af37eda is described below

commit af37eda07b1acecf4b0c57794a4cc4dbf995a533
Author: Zoran Regvart <[email protected]>
AuthorDate: Sun Feb 17 11:34:25 2019 +0100

    fix: build deployment
    
    Changing the `$HOME` made the `git push` to `asf-site` branch fail. This
    changes the `$HOME` only for steps that rely on having `$HOME` point to
    the Jenkins workspace used for caching.
---
 Jenkinsfile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 29a7788..cda4cf7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -36,7 +36,6 @@ pipeline {
     }
 
     environment {
-        HOME              = "$WORKSPACE"
         ANTORA_CACHE_DIR  = "$WORKSPACE/.antora-cache"
         YARN_CACHE_FOLDER = "$WORKSPACE/.yarn-cache"
         HUGO_VERSION      = "0.52.0"
@@ -52,6 +51,10 @@ pipeline {
                 }
             }
 
+            environment {
+                HOME = "$WORKSPACE"
+            }
+
             steps {
                 sh "cd $WORKSPACE/camel-website/antora-ui-camel && yarn 
--non-interactive --frozen-lockfile"
             }
@@ -66,6 +69,10 @@ pipeline {
                 }
             }
 
+            environment {
+                HOME = "$WORKSPACE"
+            }
+
             steps {
                 sh "cd $WORKSPACE/camel-website && yarn --non-interactive 
--frozen-lockfile"
             }

Reply via email to