You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2020/07/19 19:21:33 UTC

[logging-pipelines] branch master updated: Normalize pipelines

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

mattsicker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-pipelines.git


The following commit(s) were added to refs/heads/master by this push:
     new 1734733  Normalize pipelines
1734733 is described below

commit 1734733e8b6bc094eba6d87774f45a08dcc600fd
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sun Jul 19 14:20:24 2020 -0500

    Normalize pipelines
---
 audit/Jenkinsfile    | 10 ++++++++++
 chainsaw/Jenkinsfile | 10 ++++++++++
 kotlin/Jenkinsfile   | 10 ++++++++++
 parent/Jenkinsfile   | 18 ++++++++++++++++++
 scala/Jenkinsfile    | 10 ++++++++++
 5 files changed, 58 insertions(+)

diff --git a/audit/Jenkinsfile b/audit/Jenkinsfile
index a68a6e1..e84faec 100644
--- a/audit/Jenkinsfile
+++ b/audit/Jenkinsfile
@@ -29,9 +29,19 @@ pipeline {
         buildDiscarder logRotator(numToKeepStr: '25')
         timeout time: 1, unit: 'HOURS'
     }
+    triggers {
+        // TODO: this can be removed once gitbox webhooks are re-enabled
+        pollSCM '@hourly'
+    }
     stages {
         stage('Build') {
             steps {
+                // https://issues.jenkins-ci.org/browse/JENKINS-43353
+                script {
+                    def buildNumber = BUILD_NUMBER as int
+                    if (buildNumber > 1) milestone(buildNumber - 1)
+                    milestone(buildNumber)
+                }
                 sh 'mvn install'
             }
         }
diff --git a/chainsaw/Jenkinsfile b/chainsaw/Jenkinsfile
index 9e35adb..c71a87d 100644
--- a/chainsaw/Jenkinsfile
+++ b/chainsaw/Jenkinsfile
@@ -31,9 +31,19 @@ pipeline {
         buildDiscarder logRotator(numToKeepStr: '25')
         timeout time: 1, unit: 'HOURS'
     }
+    triggers {
+        // TODO: this can be removed once gitbox webhooks are re-enabled
+        pollSCM '@hourly'
+    }
     stages {
         stage('Build') {
             steps {
+                // https://issues.jenkins-ci.org/browse/JENKINS-43353
+                script {
+                    def buildNumber = BUILD_NUMBER as int
+                    if (buildNumber > 1) milestone(buildNumber - 1)
+                    milestone(buildNumber)
+                }
                 sh '''
                 mvn -Pdevelopment site:site
                 mvn -Pdevelopment install
diff --git a/kotlin/Jenkinsfile b/kotlin/Jenkinsfile
index a68a6e1..e84faec 100644
--- a/kotlin/Jenkinsfile
+++ b/kotlin/Jenkinsfile
@@ -29,9 +29,19 @@ pipeline {
         buildDiscarder logRotator(numToKeepStr: '25')
         timeout time: 1, unit: 'HOURS'
     }
+    triggers {
+        // TODO: this can be removed once gitbox webhooks are re-enabled
+        pollSCM '@hourly'
+    }
     stages {
         stage('Build') {
             steps {
+                // https://issues.jenkins-ci.org/browse/JENKINS-43353
+                script {
+                    def buildNumber = BUILD_NUMBER as int
+                    if (buildNumber > 1) milestone(buildNumber - 1)
+                    milestone(buildNumber)
+                }
                 sh 'mvn install'
             }
         }
diff --git a/parent/Jenkinsfile b/parent/Jenkinsfile
index 2a7d4f5..626bc09 100644
--- a/parent/Jenkinsfile
+++ b/parent/Jenkinsfile
@@ -31,6 +31,10 @@ pipeline {
         buildDiscarder logRotator(numToKeepStr: '10')
         timeout time: 5, unit: 'MINUTES'
     }
+    triggers {
+        // TODO: this can be removed once gitbox webhooks are re-enabled
+        pollSCM '@hourly'
+    }
     stages {
         stage('Deploy') {
             steps {
@@ -38,5 +42,19 @@ pipeline {
             }
         }
     }
+    post {
+        fixed {
+            emailext to: 'notifications@logging.apache.org',
+                from: 'Mr. Jenkins <je...@ci-builds.apache.org>',
+                subject: "[CI][SUCCESS] ${env.JOB_NAME}#${env.BUILD_NUMBER} back to normal",
+                body: '${SCRIPT, template="groovy-text.template"}'
+        }
+        failure {
+            emailext to: 'notifications@logging.apache.org',
+                from: 'Mr. Jenkins <je...@ci-builds.apache.org>',
+                subject: "[CI][FAILURE] ${env.JOB_NAME}#${env.BUILD_NUMBER} has potential issues",
+                body: '${SCRIPT, template="groovy-text.template"}'
+        }
+    }
 }
 
diff --git a/scala/Jenkinsfile b/scala/Jenkinsfile
index 1d277f6..7d28dd6 100644
--- a/scala/Jenkinsfile
+++ b/scala/Jenkinsfile
@@ -28,9 +28,19 @@ pipeline {
         buildDiscarder logRotator(numToKeepStr: '25')
         timeout time: 1, unit: 'HOURS'
     }
+    triggers {
+        // TODO: this can be removed once gitbox webhooks are re-enabled
+        pollSCM '@hourly'
+    }
     stages {
         stage('Build') {
             steps {
+                // https://issues.jenkins-ci.org/browse/JENKINS-43353
+                script {
+                    def buildNumber = BUILD_NUMBER as int
+                    if (buildNumber > 1) milestone(buildNumber - 1)
+                    milestone(buildNumber)
+                }
                 sh './sbt -batch auditCheck'
                 sh './sbt -batch "+ compile"'
             }