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

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c699c0dc Sets proper Ruby envs
3c699c0dc is described below

commit 3c699c0dc5b5b1dfc73f983d417bbea3c43024fe
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Fri Oct 7 10:04:34 2022 +0200

    Sets proper Ruby envs
---
 Jenkinsfile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index f785b420c..9a885643e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -23,10 +23,14 @@ pipeline {
         }
       }
       steps {
-        sh """
-          bundle install
+        sh '''
+          export RUBY_PATH="/tmp/.rvm"
+          export GEM_HOME="$RUBY_PATH/gems"
+          export PATH="$GEM_HOME/bin:$PATH"
+
+          bundle install --path $GEM_HOME
           bundle exec jekyll build
-        """
+        '''
       }
     }
     stage('Deploy to stage area') {

Reply via email to