You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2023/08/23 11:45:32 UTC

[maven] branch MNG-7863 created (now 02817798e1)

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

elharo pushed a change to branch MNG-7863
in repository https://gitbox.apache.org/repos/asf/maven.git


      at 02817798e1 [MNG-7863] don't email on s390 failures. The regular results are enough.

This branch includes the following new commits:

     new 02817798e1 [MNG-7863] don't email on s390 failures. The regular results are enough.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven] 01/01: [MNG-7863] don't email on s390 failures. The regular results are enough.

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch MNG-7863
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 02817798e1b073bf94b0f2343722bf3cb6397fb7
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Wed Aug 23 07:45:24 2023 -0400

    [MNG-7863] don't email on s390 failures. The regular results are enough.
---
 Jenkinsfile.s390x | 75 -------------------------------------------------------
 1 file changed, 75 deletions(-)

diff --git a/Jenkinsfile.s390x b/Jenkinsfile.s390x
index 84a00a8023..48995a8191 100644
--- a/Jenkinsfile.s390x
+++ b/Jenkinsfile.s390x
@@ -151,11 +151,6 @@ parallel(runITsTasks)
     echo "[FAILURE-001] ${e}"
     currentBuild.result = "FAILURE"
     throw e
-} finally {
-    // notify completion
-    stage("Notifications") {
-        notify_s390x()
-    }
 }
 
 def archiveDirs(stageId, archives) {
@@ -166,73 +161,3 @@ def archiveDirs(stageId, archives) {
     }
 }
 
-def notify_s390x() {
-    echo "Build result: ${currentBuild.currentResult}"
-    // determine the message details
-    def providers
-    def messageBody
-    def messageTail = ''
-    def messageSubject
-    def sendMail
-    switch(currentBuild.currentResult) {
-        case "SUCCESS":
-            providers = []
-            messageSubject = "Build succeeded in Jenkins: ${currentBuild.fullDisplayName}"
-            messageBody = """See ${currentBuild.absoluteUrl}"""
-            // only send successfuly builds if the previous build was unsuccessful or incomplete
-            sendMail = currentBuild.previousBuild == null || !"SUCCESS".equals(currentBuild.previousBuild.result)
-        break
-        case "UNSTABLE":
-            providers = [[$class: 'CulpritsRecipientProvider']]
-            messageSubject = "Build unstable in Jenkins: ${currentBuild.fullDisplayName}"
-            messageBody = """See ${currentBuild.absoluteUrl}"""
-            sendMail = true
-            messageTail = '\nBuild log:\n${BUILD_LOG}'
-        break
-        case "FAILURE":
-            providers = [[$class: 'CulpritsRecipientProvider']]
-            messageSubject = "Build failed in Jenkins: ${currentBuild.fullDisplayName}"
-            messageBody = """See ${currentBuild.absoluteUrl}"""
-            sendMail = true
-            messageTail = '\nBuild log:\n${BUILD_LOG}'
-        break
-        case "ABORTED":
-            providers = [[$class: 'CulpritsRecipientProvider']]
-            messageSubject = "Build aborted in Jenkins: ${currentBuild.fullDisplayName}"
-            messageBody = """See ${currentBuild.absoluteUrl}"""
-            sendMail = true
-            messageTail = '\nBuild log:\n${BUILD_LOG}'
-        break
-        default:
-            echo "Unknown status: ${currentBuild.currentResult}"
-        // should never happen if we are actually being invoked.
-        return
-    }
-
-    // add the changes to the email
-	def authors = []
-    if (currentBuild.changeSets.isEmpty() ) {
-        messageBody = messageBody + "\n\nNo changes.\n";
-    } else {
-        messageBody = messageBody + "\n\nChanges:\n";
-        for (def changeSet in currentBuild.changeSets) {
-            for (def change in changeSet) {
-                messageBody = messageBody + "\n* ${change.msg.trim().replaceAll('\n','\n  ')}"
-                authors += change.author.id
-            }
-        }
-        messageBody = messageBody + "\n"
-    }
-    println("The authors of changes ${authors.unique()}.")
-    for (def author in authors) {
-		if (author.matches('(.*)github(.*)')) sendMail = false
-    }
-    
-    if (authors.isEmpty()) sendMail = false
-    
-    if (sendMail) {
-        messageBody = messageBody + '\n${FAILED_TESTS}\n' + messageTail
-        println("Sending email ...")
-        emailext body: messageBody, replyTo: 'rishi@ca.ibm.com', subject: messageSubject, to: 'rishi@ca.ibm.com'
-    }
-}