Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56057

UpdateSiteWarningsConfiguration should be confirgurable via JCasC

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      By using JCasC I have the plugins versions under my control.

      So I don't want to disable the security warnings manually every time I create/configure a new Jenkins instance via JCasC.
      It should be possible to configure it via JCasC.

      The JCasC configuration could be look like this:

      security:
        updateSiteWarningsConfiguration:
          ignoredWarnings:
            - 'SECURITY-248'
      

      First try to patch UpdateSiteWarningsConfiguration (using @DataBoundSetter see [JCasC Requirements - guide for plugin maintainers](https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/REQUIREMENTS.md) ) has failed.
      So any hint would be welcome.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Realistically it's probably time to disable the SECURITY-248 warning for newer versions anyway. IIRC it was intended as a temporary measure to ensure users who had previously updated saw it due to the large time delay, but it's been a year now.

          Show
          danielbeck Daniel Beck added a comment - Realistically it's probably time to disable the SECURITY-248 warning for newer versions anyway. IIRC it was intended as a temporary measure to ensure users who had previously updated saw it due to the large time delay, but it's been a year now.
          Hide
          uhanisch Uwe Hanisch added a comment -

          Nevertheless:
          All what I can configure via GUI should also be possible via JCasC.
          (if there is an XML config file beneath ~jenkins/ it should be possible to set it via JCasC)

          Show
          uhanisch Uwe Hanisch added a comment - Nevertheless: All what I can configure via GUI should also be possible via JCasC. (if there is an XML config file beneath ~jenkins/ it should be possible to set it via JCasC)

            People

            • Assignee:
              Unassigned
              Reporter:
              uhanisch Uwe Hanisch
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: