You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@community.apache.org by "bdelacretaz (via GitHub)" <gi...@apache.org> on 2023/04/28 13:10:07 UTC

[GitHub] [comdev-site] bdelacretaz commented on a diff in pull request #109: Add a failure and fixed section to the Jenkinsfile for sending notifications

bdelacretaz commented on code in PR #109:
URL: https://github.com/apache/comdev-site/pull/109#discussion_r1180385710


##########
Jenkinsfile:
##########
@@ -168,5 +168,43 @@ pipeline {
             }
             deleteDir() /* clean up our workspace */
         }
+
+        // If the build failed, send an email to the list.
+        failure {
+            script {
+                if (env.BRANCH_NAME == 'main') {
+                    emailext(
+                        to: "dev@community.apache.org",
+                        recipientProviders: [[$class: 'DevelopersRecipientProvider']],
+                        from: "Jenkins <je...@ci-builds.apache.org>",
+                        subject: "Jenkins job ${env.JOB_NAME}#${env.BUILD_NUMBER} failed",

Review Comment:
   Could we add a [website] tag in the subject line? I'm a fan of tags these days ;-)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@community.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@community.apache.org
For additional commands, e-mail: dev-help@community.apache.org