Skip to content

Commit f495d62

Browse files
authored
no need to notify build failure for working branch this generate a lot of noise (#483)
1 parent 342ff2b commit f495d62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ timeout(time: 12, unit: 'HOURS') {
111111
currentBuild.result = 'FAILURE'
112112
throw e
113113
} finally {
114-
jenkinsNotify()
114+
if (env.BRANCH_NAME == 'master') {
115+
jenkinsNotify()
116+
}
115117
}
116118
}
117119

0 commit comments

Comments
 (0)