This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/master by this push:
new 4e99532c2 Simplifies docker usage
4e99532c2 is described below
commit 4e99532c27f6d407255d1c07292f2644cbb35377
Author: Lukasz Lenart <[email protected]>
AuthorDate: Fri Oct 7 09:41:47 2022 +0200
Simplifies docker usage
---
Jenkinsfile | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 89f1cd44f..2c33f00ad 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,14 +16,17 @@ pipeline {
}
stages {
stage('Build a staged website') {
- steps {
- docker.image('jekyll/builder:4.2.2').inside('-v
$WORKSPACE:/srv/jekyll') {
- sh """
- bundle install
- bundle exec jekyll build
- """
+ agent {
+ docker {
+ image 'jekyll/builder:4.2.2'
}
}
+ steps {
+ sh """
+ bundle install
+ bundle exec jekyll build
+ """
+ }
}
stage('Deploy to stage area') {
steps {