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
Constructors
Types
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