You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2019/01/20 11:47:57 UTC

[directory-ldap-api] branch master updated: Fix deploy and send notification

This is an automated email from the ASF dual-hosted git repository.

seelmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new a4769f8  Fix deploy and send notification
a4769f8 is described below

commit a4769f80596c0296db333bc23dc0e026c5eef39d
Author: Stefan Seelmann <ma...@stefan-seelmann.de>
AuthorDate: Sun Jan 20 12:47:46 2019 +0100

    Fix deploy and send notification
---
 Jenkinsfile | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 1e322c0..c56ec82 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -27,6 +27,23 @@ pipeline {
     pollSCM('@daily')
   }
   stages {
+    stage ('Debug') {
+      agent {
+        docker {
+          label 'ubuntu'
+          image 'apachedirectory/maven-build:jdk-8'
+          args '-v $HOME/.m2:/var/maven/.m2'
+        }
+      }
+      steps {
+        sh 'env'
+      }
+      post {
+        always {
+          deleteDir()
+        }
+      }
+    }
     stage ('Build and Test') {
       parallel {
         stage ('Linux Java 8') {
@@ -110,7 +127,7 @@ pipeline {
       }
       when {
         beforeAgent true
-        branch 'master'
+        branch 'origin/master'
       }
       steps {
         sh 'mvn -V clean deploy'
@@ -122,5 +139,12 @@ pipeline {
       }
     }
   }
+  post {
+    failure {
+      mail to: 'notifications@directory.apache.org',
+      subject: "Jenkins pipeline failed: ${currentBuild.fullDisplayName}",
+      body: "Jenkins build URL: ${env.BUILD_URL}"
+    }
+  }
 }