You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2018/05/10 22:55:13 UTC
[maven-doxia-site] branch master updated: added Jenkinsfile
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia-site.git
The following commit(s) were added to refs/heads/master by this push:
new 7b7bc85 added Jenkinsfile
7b7bc85 is described below
commit 7b7bc85e76dc199af2282a00c9eac3ed7dafb183
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Fri May 11 00:55:05 2018 +0200
added Jenkinsfile
---
Jenkinsfile | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..f42d250
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,50 @@
+pipeline {
+ agent {
+ label 'websites1'
+ }
+ stages {
+ stage('Build') {
+ when {
+ not { branch 'master' }
+ }
+ steps {
+ withMaven(jdk:'JDK 1.8 (latest)', maven:'Maven 3 (latest)', mavenLocalRepo:'.repository', options: [
+ artifactsPublisher(disabled: true),
+ junitPublisher(disabled: true),
+ findbugsPublisher(disabled: true),
+ openTasksPublisher(disabled: true)
+ ]) {
+ sh "mvn clean site"
+ }
+ }
+ }
+ stage('Deploy') {
+ when {
+ branch 'master'
+ }
+ steps {
+ withMaven(jdk:'JDK 1.8 (latest)', maven:'Maven 3 (latest)', mavenLocalRepo:'.repository', options: [
+ artifactsPublisher(disabled: true),
+ junitPublisher(disabled: true),
+ findbugsPublisher(disabled: true),
+ openTasksPublisher(disabled: true)
+ ]) {
+ sh "mvn clean site-deploy"
+ }
+ }
+ }
+ }
+ post {
+ always {
+ jenkinsNotify()
+ }
+ }
+ options {
+ buildDiscarder(logRotator(numToKeepStr:'15'))
+ timeout(time: 10, unit: 'MINUTES')
+ skipStagesAfterUnstable()
+ timestamps()
+ disableConcurrentBuilds()
+ ansiColor('xterm')
+ }
+}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
hboutemy@apache.org.