You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by st...@apache.org on 2018/05/10 08:48:05 UTC
[maven-site] branch master updated: Let's try this as a Jenkinsfile
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 <st...@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.