You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2018/12/17 17:28:02 UTC
[sling-site] branch feature/SLING-7180 created (now d55e458)
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a change to branch feature/SLING-7180
in repository https://gitbox.apache.org/repos/asf/sling-site.git.
at d55e458 SLING-7180 - Set up a Jenkins job for automatically publishing the Sling site
This branch includes the following new commits:
new d55e458 SLING-7180 - Set up a Jenkins job for automatically publishing the Sling site
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[sling-site] 01/01: SLING-7180 - Set up a Jenkins job for
automatically publishing the Sling site
Posted by ro...@apache.org.
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 <ro...@apache.org>
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"'
+ }
+ }
}
}