Add notification to api
This commit is contained in:
parent
da31b3b7dd
commit
16fd981703
|
|
@ -18,7 +18,8 @@ type JenkinsSpec struct {
|
||||||
SeedJobs []SeedJob `json:"seedJobs,omitempty"`
|
SeedJobs []SeedJob `json:"seedJobs,omitempty"`
|
||||||
|
|
||||||
// Notification defines services which are used to inform about Jenkins behavior
|
// Notification defines services which are used to inform about Jenkins behavior
|
||||||
Notification []Notification `json:"notification,omitempty"`
|
// Can be used to integrate chat services like Slack or Email services like Mailgun
|
||||||
|
Notification Notification `json:"notifications,omitempty"`
|
||||||
|
|
||||||
// Service is Kubernetes service of Jenkins master HTTP pod
|
// Service is Kubernetes service of Jenkins master HTTP pod
|
||||||
// Defaults to :
|
// Defaults to :
|
||||||
|
|
@ -488,9 +489,6 @@ const (
|
||||||
type JenkinsNotificationLogLevel string
|
type JenkinsNotificationLogLevel string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// LogLevelNone - No logs
|
|
||||||
LogLevelNone JenkinsNotificationLogLevel = ""
|
|
||||||
|
|
||||||
// LogLevelWarning - Only Warnings
|
// LogLevelWarning - Only Warnings
|
||||||
LogLevelWarning JenkinsNotificationLogLevel = "warning"
|
LogLevelWarning JenkinsNotificationLogLevel = "warning"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue