From 2ead133688bc6654527d439a4a9bedf3ff673838 Mon Sep 17 00:00:00 2001 From: Oleksandr Kovalchuk Date: Wed, 15 Apr 2020 15:55:21 +0300 Subject: [PATCH 1/2] Fix documentation source regarding notifications level According to schema, field is called level, not loggingLevel. Fix invalid example in the documentation Ref: https://github.com/jenkinsci/kubernetes-operator/blob/master/pkg/apis/jenkins/v1alpha2/jenkins_types.go#L108 --- .../docs/Getting Started/latest/notifications.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/website/content/en/docs/Getting Started/latest/notifications.md b/website/content/en/docs/Getting Started/latest/notifications.md index 91565a6c..c381fa1f 100644 --- a/website/content/en/docs/Getting Started/latest/notifications.md +++ b/website/content/en/docs/Getting Started/latest/notifications.md @@ -24,7 +24,7 @@ kind: Jenkins spec: master: notifications: - - loggingLevel: info + - level: info verbose: true name: slack: @@ -45,7 +45,7 @@ kind: Jenkins spec: master: notifications: - - loggingLevel: info + - level: info verbose: true name: teams: @@ -64,7 +64,7 @@ kind: Jenkins spec: master: notifications: - - loggingLevel: info + - level: info verbose: true name: mailgun: @@ -81,7 +81,7 @@ spec: As you see there is two debugging options: -* `loggingLevel` (warning/info) - Set level of messages to send. +* `level` (warning/info) - Set level of messages to send. * `verbose` - Print stacktrace and additional error messages @@ -95,7 +95,7 @@ kind: Jenkins spec: master: notifications: - - loggingLevel: info + - level: info verbose: true name: nslack slack: @@ -103,7 +103,7 @@ spec: secret: name: key: - - loggingLevel: info + - level: info verbose: true name: nteams teams: @@ -111,4 +111,4 @@ spec: secret: name: key: -``` \ No newline at end of file +``` From cbb329666abb42e52b70d9102b74e33826730cf7 Mon Sep 17 00:00:00 2001 From: Oleksandr Kovalchuk Date: Wed, 15 Apr 2020 15:57:57 +0300 Subject: [PATCH 2/2] Change loggingLevel to level in generated documentation --- .../latest/notifications/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/docs/getting-started/latest/notifications/index.html b/docs/docs/getting-started/latest/notifications/index.html index 35dbda44..c218877b 100644 --- a/docs/docs/getting-started/latest/notifications/index.html +++ b/docs/docs/getting-started/latest/notifications/index.html @@ -673,7 +673,7 @@ spec: master: notifications: - - loggingLevel: info + - level: info verbose: true name: <name> slack: @@ -693,7 +693,7 @@ spec: spec: master: notifications: - - loggingLevel: info + - level: info verbose: true name: <name> teams: @@ -711,7 +711,7 @@ spec: spec: master: notifications: - - loggingLevel: info + - level: info verbose: true name: <name> mailgun: @@ -729,7 +729,7 @@ spec:

As you see there is two debugging options:

    -
  • loggingLevel (warning/info) - Set level of messages to send.

  • +
  • level (warning/info) - Set level of messages to send.

  • verbose - Print stacktrace and additional error messages

@@ -743,7 +743,7 @@ For example you will send notifications to Slack and Teams.

spec: master: notifications: - - loggingLevel: info + - level: info verbose: true name: nslack slack: @@ -751,7 +751,7 @@ spec: secret: name: <secret_name> key: <key> - - loggingLevel: info + - level: info verbose: true name: nteams teams: @@ -807,4 +807,4 @@ spec: - \ No newline at end of file +