This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new df2dbc8 - Try suppressing the false positive "commit to master"
emails.
df2dbc8 is described below
commit df2dbc893d4a41f857ed8ac8d626dc092ec7cc08
Author: Christofer Dutz <[email protected]>
AuthorDate: Tue Apr 23 09:29:08 2019 +0200
- Try suppressing the false positive "commit to master" emails.
---
Jenkinsfile | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index e1ecf6c..e496da6 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -280,16 +280,20 @@ Is back to normal.
always {
script {
if(env.BRANCH_NAME == "master") {
- emailext(
- subject: "[COMMIT-TO-MASTER]: A commit to the master
branch was made'",
- body: """
+ // Double check if something was really changed as
sometimes the
+ // build just runs without any changes.
+ if(currentBuild.changeSets.size() > 0) {
+ emailext(
+ subject: "[COMMIT-TO-MASTER]: A commit to the
master branch was made'",
+ body: """
COMMIT-TO-MASTER: A commit to the master branch was made:
Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME}
[${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]</a>"
""",
- to: "[email protected]",
- recipientProviders: [[$class:
'DevelopersRecipientProvider']]
- )
+ to: "[email protected]",
+ recipientProviders: [[$class:
'DevelopersRecipientProvider']]
+ )
+ }
}
}
}