maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steph...@apache.org
Subject [maven-site] branch master updated: Let's try this as a Jenkinsfile
Date Thu, 10 May 2018 08:48:05 GMT
This is an automated email from the ASF dual-hosted git repository.

stephenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git


The following commit(s) were added to refs/heads/master by this push:
     new f065298  Let's try this as a Jenkinsfile
f065298 is described below

commit f0652982723cd319d2db52715c975e5286ad98d5
Author: Stephen Connolly <stephen.alan.connolly@gmail.com>
AuthorDate: Thu May 10 09:47:32 2018 +0100

    Let's try this as a 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
stephenc@apache.org.

Mime
View raw message