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

Support configuring optionals via configuration-as-code plugin

XMLWordPrintable

      Currently when trying to configure the optionals via configuration-as-code like this:

       

      securityRealm:
          mixing:
             allowsSignup: false
             enableCaptcha: false
             priority: true
             optionals:
                  github:
                      githubWebUri: "https://github.com"
                      githubApiUri: "https://api.github.com"

                      ...

       

      Causes an error because `optionals` is not exposed:
       

      io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class hudson.security.MixingSecurityRealm : optionals. Available attributes : allowsSignup, captchaSupport, enableCaptcha, priority

      I suspect the property would need to be exposed as described here:
      https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/PLUGINS.md

            promissing WENJUN XIAO
            mfussenegger Mathias Fußenegger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: