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 e309a66d3 Reverts to Docker again
e309a66d3 is described below
commit e309a66d367d2e221746f4aa7c06fb0948124ad3
Author: Lukasz Lenart <[email protected]>
AuthorDate: Fri Oct 14 08:07:40 2022 +0200
Reverts to Docker again
---
Jenkinsfile | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index c372c9de9..23f155dcd 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -10,25 +10,25 @@ 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') {
+ agent {
+ docker {
+ image 'jekyll/builder:4.2.2'
+ }
+ }
steps {
- sh """
- echo Generiting a new version of website
-
- 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'
-
+ sh '''
+ export GEM_HOME="$WORKSPACE/.gems"
+ export PATH="$GEM_HOME/bin:$PATH"
+ export BUNDLE_USER_HOME="$WORKSPACE/.bundle"
+
+ bundle config set --local path $GEM_HOME
bundle install
bundle exec jekyll build
- """
+
+ ls -la
+ '''
}
}
stage('Deploy to stage area') {