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 48b0da92d Reverts build to version before starts using Docker 48b0da92d is described below commit 48b0da92df79e654f81dc5184e34689d8e3e64b5 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Thu Oct 13 17:10:00 2022 +0200 Reverts build to version before starts using Docker --- Jenkinsfile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b2ba9172d..beca57e1a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,26 +10,31 @@ 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 ''' - export GEM_HOME="$WORKSPACE/.gems" - export PATH="$GEM_HOME/bin:$PATH" - export BUNDLE_USER_HOME="$WORKSPACE/.bundle" + sh """ + echo Generiting 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} + bundle config set --local path $GEM_HOM + gem install --install-dir ${GEM_HOME} bundler -v '2.3.23' + bundle install bundle exec jekyll build - ''' + """ } } stage('Deploy to stage area') { steps { sh """ echo "Pushing changes into stage site" - - ls -l if ! git config remote.asf.url > /dev/null; then git remote add asf https://gitbox.apache.org/repos/asf/struts-site.git