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 51fe84f8e Moves building site into pipeline
51fe84f8e is described below
commit 51fe84f8e06ef58f2c6d01bae9352f7eb1aa683f
Author: Lukasz Lenart <[email protected]>
AuthorDate: Wed Oct 19 14:18:53 2022 +0200
Moves building site into pipeline
---
Dockerfile | 2 --
Jenkinsfile | 7 ++-----
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 58c20bb0b..7fc28be9d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,5 +7,3 @@ ENV PATH="$GEM_HOME/bin:$PATH"
ENV BUNDLE_USER_HOME="$WORKSPACE/.bundle"
RUN bundle config set --local path $GEM_HOME
-RUN bundle install
-RUN bundle exec jekyll build
diff --git a/Jenkinsfile b/Jenkinsfile
index 5ac7c1834..68dbe705a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -19,6 +19,8 @@ pipeline {
}
steps {
sh '''
+ bundle install
+ bundle exec jekyll build
mv ./_site /dest
'''
}
@@ -28,9 +30,6 @@ pipeline {
sh '''
echo "Pushing changes into stage site"
- pwd
- ls -la
-
if ! git config remote.asf.url > /dev/null; then
git remote add asf
https://gitbox.apache.org/repos/asf/struts-site.git
fi
@@ -39,8 +38,6 @@ pipeline {
git checkout asf-staging
git pull asf asf-staging
- ls -la
-
cp -r _site/* content
cp -r _site/.htaccess content/.htaccess