This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch feature/SLING-7180 in repository https://gitbox.apache.org/repos/asf/sling-site.git
commit d55e4580efea0d55c6e2733ba8730a56b79eb67d 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"' + } + } } }
