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 8ea0c7a34 Defines envs in script
8ea0c7a34 is described below

commit 8ea0c7a34d27c1a473bb72d9bdbd7f0c46db3066
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Thu Oct 13 17:32:11 2022 +0200

    Defines envs in script
---
 Jenkinsfile | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2a94cd153..d1be1c824 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -10,21 +10,19 @@ pipeline {
     disableConcurrentBuilds()
     skipStagesAfterUnstable()
   }
-  environment {
-    RUBY_PATH="${env.WORKSPACE}/.rvm"
-    GEM_HOME="${evn.WORKSPACE}/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="${env.WORKSPACE}/.rvm"
+          export GEM_HOME="${evn.WORKSPACE}/.gems"
+          export PATH="${env.GEM_HOME}/bin:${env.PATH}"
 
-          curl -sSL https://get.rvm.io | bash -s -- --path ${RUBY_PATH}
-          mkdir -p ${GEM_HOME}
-          bundle config set --local path ${GEM_HOME}
-          gem install  --install-dir ${GEM_HOME} bundler -v '2.3.23'
+          curl -sSL https://get.rvm.io | bash -s -- --path ${env.RUBY_PATH}
+          mkdir -p ${env.GEM_HOME}
+          bundle config set --local path ${env.GEM_HOME}
+          gem install  --install-dir ${env.GEM_HOME} bundler -v '2.3.23'
           
           bundle install
           bundle exec jekyll build

Reply via email to