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 2017/11/28 18:59:01 UTC

[maven-jenkins-lib] branch master updated: Add notify step

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-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 8fe1922  Add notify step
8fe1922 is described below

commit 8fe1922cee352da1511d15c047019737c9e3f3df
Author: Stephen Connolly <st...@gmail.com>
AuthorDate: Tue Nov 28 18:57:48 2017 +0000

    Add notify step
---
 vars/asfMavenTlpStdBuild.groovy | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index 94036fc..69489bd 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -39,5 +39,18 @@ def call(Map params = [:]) {
       first = false
     }
   }
-  return parallel(tasks)
+  def buildRetention
+  if (env.BRANCH_NAME == 'master') {
+    buildRetention = buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '3', daysToKeepStr: '21', numToKeepStr: '25'))
+  } else {
+    buildRetention = buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '1', daysToKeepStr: '7', numToKeepStr: '5'))
+  }
+  properties([buildRetention])
+  try {
+    parallel(tasks)
+    jenkinsNotify()
+  } catch (exc) {
+    jenkinsNotify()
+    throw exc
+  }
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
['"commits@maven.apache.org" <co...@maven.apache.org>'].