This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new 4bac176 SLING-7180 - Set up a Jenkins job for automatically
publishing the Sling site
4bac176 is described below
commit 4bac176a1bda60caac7a47460e8a80c27b7c2ee1
Author: Robert Munteanu <[email protected]>
AuthorDate: Mon Dec 17 18:27:37 2018 +0100
SLING-7180 - Set up a Jenkins job for automatically publishing the Sling
site
---
Jenkinsfile | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index 1b207f9..6df822c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -13,5 +13,22 @@ pipeline {
sh 'mvn clean package'
}
}
+
+ // based on
https://cwiki.apache.org/confluence/display/INFRA/Multibranch+Pipeline+recipies
+ stage ('Deploy site') {
+ when {
+ branch 'master'
+ }
+
+ agent {
+ node {
+ label 'git-websites'
+ }
+ }
+
+ steps {
+ sh 'mvn package -Ppublish-site -Dmsg="Automatic website
deployment"'
+ }
+ }
}
}