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 17e886a6c Avoids using env prefix
17e886a6c is described below

commit 17e886a6cd84a6a7b62c3aa95cd24350011437c9
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Fri Oct 14 07:54:50 2022 +0200

    Avoids using env prefix
---
 Jenkinsfile | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index d1be1c824..35e599dc3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -15,14 +15,14 @@ pipeline {
       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}"
+          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 ${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'
+          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'
           
           bundle install
           bundle exec jekyll build

Reply via email to