This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch results
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/results by this push:
new 96180e142 Sets proper envs
96180e142 is described below
commit 96180e142a95ba54ee01d63d452ff0c69131b707
Author: Lukasz Lenart <[email protected]>
AuthorDate: Fri Oct 14 08:01:14 2022 +0200
Sets proper envs
---
Jenkinsfile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 35e599dc3..c372c9de9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -10,15 +10,17 @@ pipeline {
disableConcurrentBuilds()
skipStagesAfterUnstable()
}
+ environment {
+ RUBY_PATH="${env.WORKSPACE}/.rvm"
+ GEM_HOME="${RUBY_PATH}/gems"
+ PATH="${GEM_HOME}/bin:${env.PATH}"
+ }
stages {
stage('Build a staged website') {
steps {
sh """
echo Generiting a new version of website
- export RUBY_PATH="${WORKSPACE}/.rvm"
- export GEM_HOME="${WORKSPACE}/.gems"
- export PATH="${GEM_HOME}/bin:${PATH}"
-
+
curl -sSL https://get.rvm.io | bash -s -- --path ${RUBY_PATH}
mkdir -p ${GEM_HOME}
bundle config set --local path ${GEM_HOME}