Notifications
Build feature for notification rule
Example. Adds notifications build feature that sends email notifications when build is started
buildType {
// Other Build Type settings ...
features {
// Other Build Features ...
notifications {
notifierSettings = emailNotifier {
email = "me@mail.com"
}
buildStarted = true
}
Content copied to clipboard }
}
Example. Adds notifications build feature that sends email notifications when build is finished successfully
buildType {
// Other Build Type settings ...
features {
// Other Build Features ...
notifications {
notifierSettings = emailNotifier {
email = "me@mail.com"
}
buildFinishedSuccessfully = true
}
Content copied to clipboard }
}
Example. Adds notifications build feature that sends email notifications when build failed, but only in "main" branch
buildType {
// Other Build Type settings ...
features {
// Other Build Features ...
notifications {
notifierSettings = emailNotifier {
email = "me@mail.com"
}
branchFilter = "+:main"
buildFailed = true
}
Content copied to clipboard }
}
See also
Properties
Branch filter
Send notification if build failed
Send notification if build fails to start
Send notification if build finished successfully
Build is probably hanging
Send notification when build started
Notify when the first build error occurs
Send notification if build failed for the first time after success
Send notification if build is successfull for the first time after failure
Only notify on new build problem or new failed test
Only notify on new build problem or new failed test
Notifier that will send notifications
Keep notifying until build is complete (even without my changes)
Queued build requires approval
Functions
Copies parameters of this object to the specified target
Creates an instance of this build feature via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Send notifications via email
Send notifications to Slack
Validates this object and reports found errors to the provided consumer