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 bdefa4cb4 Reverts to non-Docker build bdefa4cb4 is described below commit bdefa4cb458ea9791c1c8e10f5b57939d10c74d5 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Wed Oct 19 15:02:54 2022 +0200 Reverts to non-Docker build --- Jenkinsfile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b49771e7c..694b8e34f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,23 +10,26 @@ pipeline { disableConcurrentBuilds() skipStagesAfterUnstable() } + environment { + RUBY_PATH="${env.WORKSPACE}/.rvm" + GEM_HOME="${RUBY_PATH}/gems" + PATH="${GEM_HOME}/bin:${RUBY_PATH}/bin:${env.PATH}" + } stages { stage('Build a staged website') { - agent { - dockerfile { - args "-v ${env.WORKSPACE}:/dest:rw,z" - } - } steps { sh ''' - export GEM_HOME="$WORKSPACE/.gems" - export PATH="$GEM_HOME/bin:$PATH" - export BUNDLE_USER_HOME="$WORKSPACE/.bundle" + echo Generating a new version of website - bundle config set --local path $GEM_HOME + curl -sSL https://get.rvm.io | bash -s -- --path ${RUBY_PATH} + mkdir -p ${GEM_HOME} + + rvm install 2.7.6 + gem install --install-dir ${GEM_HOME} bundler -v '2.3.13' + + bundle config set --local path ${GEM_HOME} bundle install bundle exec jekyll build - mv ./_site /dest ''' } }