You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2022/04/07 06:07:10 UTC
[struts-site] branch test-build updated: Declares proper envs
This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch test-build
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/test-build by this push:
new da79f647e Declares proper envs
da79f647e is described below
commit da79f647ef22cfd85428b8f1be2602d79d30bdff
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Thu Apr 7 08:07:05 2022 +0200
Declares proper envs
---
Jenkinsfile | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 1864c5c99..150974073 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -13,20 +13,22 @@ pipeline {
agent {
label 'git-websites'
}
+ environment {
+ RUBY_PATH=${env.HOME}/.rvm
+ GEM_HOME=${env.RUBY_PATH}/gems
+ PATH=${GEM_HOME}/bin:${env.PATH}
+ }
steps {
sh """
echo Generiting a new version of website
mkdir -p target/content
- export RUBY_PATH=${env.HOME}/.rvm
- export GEM_HOME=${env.RUBY_PATH}/gems
-
- curl -sSL https://get.rvm.io | bash -s -- --path ${env.RUBY_PATH}
- mkdir -p ${env.GEM_HOME}/gems
- gem install --install-dir ${env.GEM_HOME} bundler -v '2.1.4'
- export PATH=${env.GEM_HOME}/bin:${env.PATH}
- bundle install --path ${env.GEM_HOME}
+ curl -sSL https://get.rvm.io | bash -s -- --path ${RUBY_PATH}
+ mkdir -p ${GEM_HOME}
+ gem install --install-dir ${GEM_HOME} bundler -v '2.1.4'
+
+ bundle install --path ${GEM_HOME}
bundle
bundle exec jekyll build
"""